摘要: 1、送检单位 代理商是从代理商表中取得数据 销售人员从销售表中取得数据 说一个简单的思路: sql语句找到连接两个表的条件,把另外一个表要用到的字段 写一个 <resultMap type="com.biodx.bus.inspectionUnit.model.Agent" id="agentBas 阅读全文
posted @ 2017-07-07 14:14 夕阳残血 阅读(1285) 评论(0) 推荐(0) 编辑
摘要: resultMap 返回值结果类型,比如dao方法的返回值是List<Agent>,返回的就是实体类 resultType 返回值结果类型,如果dao方法的返回值是String等 返回的就是java.lang.String parameterType 参数类型,如果dao方法的参数类型是(Map<S 阅读全文
posted @ 2017-07-07 13:55 夕阳残血 阅读(1311) 评论(0) 推荐(0) 编辑
摘要: from T_DICTIONARY t left outer join T_DICTIONARY d on t.p_id = d.ID (t为子表,d为父表) 页面添加 input 父类名称:<input id="pDName" name="pName" type="text" placeholde 阅读全文
posted @ 2017-07-07 10:29 夕阳残血 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 1.页面获取参数: 字典名称:<input id="sdName" name="dName" type="text" placeholder="字典名称" class="form-control input-medium input-inline" autocomplete="off"> <butt 阅读全文
posted @ 2017-07-07 09:53 夕阳残血 阅读(487) 评论(0) 推荐(0) 编辑
摘要: <td>$!{l.name}</td>获取后台数据是否为空,为null显示空白,不为null则显示相应数据 <td>$!{l.chinaName}</td> 阅读全文
posted @ 2017-07-07 09:34 夕阳残血 阅读(627) 评论(0) 推荐(0) 编辑