| | |
| | | |
| | | <!-- 重复校验 sql语句 --> |
| | | <select id="duplicateCheckCountSql" resultType="Long" parameterType="org.jeecg.modules.system.model.DuplicateCheckVo"> |
| | | SELECT COUNT(*) FROM ${tableName} WHERE ${fieldName} = #{fieldVal} and id <> #{dataId} |
| | | SELECT COUNT(1) FROM ${tableName} WHERE ${fieldName} = #{fieldVal} and id <> #{dataId} |
| | | <if test="delFlag != null and delFlag "> |
| | | and del_flag=0 |
| | | </if> |
| | | </select> |
| | | |
| | | <!-- 重复校验 sql语句 --> |
| | | <select id="duplicateCheckCountSqlNoDataId" resultType="Long" parameterType="org.jeecg.modules.system.model.DuplicateCheckVo"> |
| | | SELECT COUNT(*) FROM ${tableName} WHERE ${fieldName} = #{fieldVal} |
| | | SELECT COUNT(1) FROM ${tableName} WHERE ${fieldName} = #{fieldVal} |
| | | <if test="delFlag != null and delFlag "> |
| | | and del_flag=0 |
| | | </if> |
| | | </select> |
| | | |
| | | <!-- 查询部门信息 作为字典数据 --> |
| | |
| | | </foreach> |
| | | </select> |
| | | |
| | | <!-- 通过字典code,itemText获取itemValue --> |
| | | <select id="queryDictItemValueByCodeAndText" parameterType="String" resultType="org.jeecg.common.system.vo.DictModel"> |
| | | select s.item_value as "value",s.item_text as "text" from sys_dict_item s |
| | | where dict_id = (select id from sys_dict where dict_code = #{code}) |
| | | and s.item_text = #{itemText} |
| | | order by s.sort_order asc |
| | | </select> |
| | | |
| | | </mapper> |