From 2938172b377e5ed7a55e5dde4a218244445e8a6e Mon Sep 17 00:00:00 2001 From: wuzeyu <1223318623@qq.com> Date: 星期三, 15 五月 2024 17:10:12 +0800 Subject: [PATCH] 田间灌溉项目管理 修改项目信息接口 修改项目状态接口 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrProjectMapper.xml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 50 insertions(+), 2 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrProjectMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrProjectMapper.xml index 81848e5..bc12c84 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrProjectMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/IrProjectMapper.xml @@ -17,7 +17,7 @@ <result column="operate_time" jdbcType="TIMESTAMP" property="operateDt" /> <result column="deleted" jdbcType="TINYINT" property="deleted" /> </resultMap> - + <!--娣诲姞--> <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoIr.IrProject"> <!--@mbg.generated--> insert into ir_project @@ -108,11 +108,59 @@ on dis_vil.supperId = dis_tow.id where dis_vil.id = #{vaId,jdbcType=BIGINT} </select> - + <!--閫昏緫鍒犻櫎--> <delete id="deleteLogicById" parameterType="java.lang.Long"> <!--@mbg.generated--> update ir_project set deleted = 1 where id = #{id,jdbcType=BIGINT} </delete> + + <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoIr.IrProject"> + update ir_project + <set> + <if test="projectName != null"> + project_name = #{projectName,jdbcType=VARCHAR}, + </if> + <if test="provinceId != null"> + province_id = #{provinceId,jdbcType=BIGINT}, + </if> + <if test="cityId != null"> + city_id = #{cityId,jdbcType=BIGINT}, + </if> + <if test="countyId != null"> + county_id = #{countyId,jdbcType=BIGINT}, + </if> + <if test="townId != null"> + town_id = #{townId,jdbcType=BIGINT}, + </if> + <if test="villageId != null"> + village_id = #{villageId,jdbcType=BIGINT}, + </if> + <if test="projectState != null"> + project_state = #{projectState,jdbcType=TINYINT}, + </if> + <if test="remarks != null"> + remarks = #{remarks,jdbcType=VARCHAR}, + </if> + <if test="operator != null"> + operator = #{operator,jdbcType=BIGINT}, + </if> + <if test="operateDt != null"> + operate_time = #{operateDt,jdbcType=TIMESTAMP}, + </if> + <if test="deleted != null"> + deleted = #{deleted,jdbcType=TINYINT}, + </if> + </set> + where id = #{id,jdbcType=BIGINT} + </update> + + <update id="updateProjectState"> + update ir_project + set project_state = #{projectState,jdbcType=TINYINT}, + operator = #{operator,jdbcType=BIGINT}, + operate_time = #{operateDt,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + </update> </mapper> \ No newline at end of file -- Gitblit v1.8.0