| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectDistinctProjects" parameterType="java.util.Map" resultMap="SysProject"> |
| | | SELECT |
| | | sp.* |
| | | FROM |
| | | sys_project sp |
| | | WHERE sp.valid_flag = 1 |
| | | AND sp.project is not null |
| | | GROUP BY |
| | | sp.project |
| | | </select> |
| | | |
| | | |
| | | <insert id="insertBatch" parameterType="java.util.List"> |
| | | insert into sys_project |
| | |
| | | limit #{first}, #{pageSize} |
| | | </if> |
| | | </select> |
| | | <select id="selectByProject" resultType="java.lang.Integer"> |
| | | select count(0) |
| | | from sys_project |
| | | where valid_flag = 1 |
| | | and project = #{0} |
| | | |
| | | </select> |
| | | |
| | | <insert id="insertSysProject" parameterType="com.nanometer.smartlab.entity.SysProject"> |
| | | insert into sys_project(id, project_id,project_name,sys_user_id,remark,valid_flag,creater_user,create_time,project) |