Commit b5c0188e authored by zhangwanglin's avatar zhangwanglin

服务分配

parent 9107a82a
......@@ -2,6 +2,8 @@ package com.hungraim.ltc.governance.controller;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ltc.governance.dao.ChSrvSendMapper;
......@@ -279,8 +281,8 @@ public class BuildBedController {
if (chrSrvVo.getSrvSendId() == null) {
sendService.insertSrvSend(chSrvSend);
}else {
chSrvSend.setSrvSendId(chrSrvVo.getSrvSendId());
sendService.updateById(chSrvSend);
chSrvSend.setSrvSendId(chrSrvVo.getSrvSendId());
chSrvSendMapper.updateSrvSendById(chSrvSend);
}
}
......
......@@ -24,4 +24,6 @@ public interface ChSrvSendMapper extends BaseMapper<ChSrvSend> {
Page<SvrSendListVo> selectSrvSendList(Page<SvrSendListVo> page, @Param("srvOrganId") Long srvOrganId, @Param("realName") String realName, @Param("realTel") String realTel, @Param("programStatus") String programStatus);
int updateSrvSendInfo(Long disabInfoId);
int updateSrvSendById(ChSrvSend chSrvSend);
}
\ No newline at end of file
......@@ -76,4 +76,13 @@
update CH_SRV_SEND p set p.status = '2',p.end_time = sysdate where
p.DISAB_INFO_ID = #{disabInfoId}
</update>
<update id="updateSrvSendById" parameterType="com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend">
update CH_SRV_SEND p set p.status = '1',p.SRV_MODE_ID = #{srvModeId},p.ALLOT_TIME =#{allotTime},
p.DISAB_INFO_ID =#{disabInfoId},p.STOP_TIME =#{stopTime},p.fcd = sysdate where
p.SRV_SEND_ID = #{srvSendId}
</update>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment