1、模板导入接口返回结果布尔值,检查优化;2、模版名重复判定优化;

This commit is contained in:
gaoqr
2024-12-05 19:44:19 +08:00
parent 2c10f27e4d
commit e1d6c7277c
5 changed files with 39 additions and 16 deletions
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.cf.imes.module.report.dal.mysql.template.ReportTemplateMapper">
<select id="selectExistTemplateName" resultType="java.lang.Integer">
SELECT COUNT(1)
FROM report_template
WHERE name = #{reqVO.name}
<if test="reqVO.id != null">
id != #{reqVO.id}
</if>
<if test="isSuperAdmin">
AND type = #{type}
</if>
</select>
</mapper>