| | |
| | | return dictService.selectDictAll(); |
| | | } |
| | | |
| | | |
| | | @GetMapping(value = "/selectDictTab") |
| | | public List<DictEntity> selectDictTab() { |
| | | return dictService.selectDictTab(); |
| | | } |
| | | } |
| | |
| | | return dirService.selectDirAll(); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | public List<DictEntity> selectDictAll(); |
| | | |
| | | /** |
| | | * 查询表格中文名 |
| | | * @return |
| | | */ |
| | | public List<DictEntity> selectDictTab(); |
| | | |
| | | |
| | | } |
| | |
| | | public List<DictEntity> selectDictAll() { |
| | | return dictMapper.selectDictAll(); |
| | | } |
| | | |
| | | @Override |
| | | public List<DictEntity> selectDictTab() { |
| | | return dictMapper.selectDictTab(); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | <result property="updateUser" column="update_user"></result> |
| | | <result property="updateTime" column="update_time"></result> |
| | | </resultMap> |
| | | |
| | | <select id="selectDictTab" resultMap="resultMap" resultType="com.lf.server.entity.data.DictEntity"> |
| | | select Distinct tab,tab_desc from lf.sys_dict; |
| | | </select> |
| | | |
| | | <select id="selectDictAll" resultMap="resultMap" resultType="com.lf.server.entity.data.DictEntity"> |
| | | select * from lf.sys_dict |
| | | </select> |
| | |
| | | update lf.sys_dict set ns=#{ns},tab=#{tab},tab_desc=#{tabDesc},field=#{field},alias=#{alias},type=#{type}, |
| | | len=#{len},precision=#{precision}, order_num=#{orderNum},update_user=#{updateUser},update_time=now(),bak=#{bak} where id=#{id} |
| | | </update> |
| | | |
| | | </mapper> |