管理端可在资产管理模块编辑资产所属单位信息,并同步至任务中

duhanyu
dongdingding 3 months ago
parent cf029a573f
commit 470d7bb96e

@ -529,7 +529,7 @@ public class AssetCurrentController extends BaseController {
if (s.getStatus()==5 ){ if (s.getStatus()==5 ){
//修改任务中资产状态 //修改任务中资产状态
s.setStatus(0); s.setStatus(0);
s.setBtgyy(null); s.setBfyy(null);
assetTask.setTaskStatus(1); assetTask.setTaskStatus(1);
assetTaskService.update(assetTask); assetTaskService.update(assetTask);
assetCurrentCpService.updateById(s); assetCurrentCpService.updateById(s);

@ -233,7 +233,7 @@ public class AssetEmailController extends BaseController {
if (assetEmailCpPo.getStatus()==5 ) { if (assetEmailCpPo.getStatus()==5 ) {
//修改任务中资产状态 //修改任务中资产状态
assetEmailCpPo.setStatus(0); assetEmailCpPo.setStatus(0);
assetEmailCpPo.setBtgyy(null); assetEmailCpPo.setBfyy(null);
assetTask.setTaskStatus(1); assetTask.setTaskStatus(1);
assetTaskService.update(assetTask); assetTaskService.update(assetTask);
assetEmailCpService.updateById(assetEmailCpPo); assetEmailCpService.updateById(assetEmailCpPo);

@ -241,7 +241,7 @@ public class AssetMiniProgramsController extends BaseController {
if (assetMiniProgramsCpPo.getStatus()==5) { if (assetMiniProgramsCpPo.getStatus()==5) {
//修改任务中资产状态 //修改任务中资产状态
assetMiniProgramsCpPo.setStatus(0); assetMiniProgramsCpPo.setStatus(0);
assetMiniProgramsCpPo.setBtgyy(null); assetMiniProgramsCpPo.setBfyy(null);
assetTask.setTaskStatus(1); assetTask.setTaskStatus(1);
assetMiniProgramsCpService.updateById(assetMiniProgramsCpPo); assetMiniProgramsCpService.updateById(assetMiniProgramsCpPo);
assetTaskService.update(assetTask); assetTaskService.update(assetTask);

@ -1007,7 +1007,7 @@ public class AssetCurrentCpPo extends BaseClass implements Serializable {
private String bfyy; private String bfyy;
@ApiModelProperty("审核状态0待核查1待审批3审核通过4审核不通过5已报废") @ApiModelProperty("审核状态0待核查1待审批3审核通过4审核不通过5已报废")
private Integer status = 0; private Integer status;
@ApiModelProperty("不通过原因") @ApiModelProperty("不通过原因")

@ -163,6 +163,7 @@ public class AssetAppServiceImpl extends ServiceImpl<AssetAppMapper, AssetApp> i
if (assetAppCpPo!=null){ if (assetAppCpPo!=null){
assetAppCpPo.setAppName(assetApp.getAppName()); assetAppCpPo.setAppName(assetApp.getAppName());
assetAppCpPo.setTaskId(assetTask.getId()); assetAppCpPo.setTaskId(assetTask.getId());
assetAppCpPo.setBfyy(null);
//修改 //修改
assetAppCpService.updateById(assetAppCpPo); assetAppCpService.updateById(assetAppCpPo);
} }

@ -187,7 +187,18 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
for (String part : parts) { for (String part : parts) {
//根据单位名称查询资产 //根据单位名称查询资产
List<AssetCurrentCpPo> list = assetTaskDao.findByDwmcAssetCurrent(part); List<AssetCurrentCpPo> list = assetTaskDao.findByDwmcAssetCurrent(part);
list.forEach(assetCurrentResponse -> assetCurrentResponse.setTaskId(id)); list.forEach(assetCurrentResponse -> {
assetCurrentResponse.setTaskId(id);
if (assetCurrentResponse.getXtzt().equals("5")) {
assetCurrentResponse.setStatus(5);
assetCurrentResponse.setBfyy(null);
assetCurrentResponse.setBtgyy(null);
} else {
assetCurrentResponse.setStatus(0);
assetCurrentResponse.setBfyy(null);
assetCurrentResponse.setBtgyy(null);
}
});
assetCurrentCpService.saveBatch(list); assetCurrentCpService.saveBatch(list);
//新增新监管业务形态 //新增新监管业务形态
@ -215,9 +226,19 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
List<AssetMiniProgramsCpPo> miniProgramsNewList = list.stream().map(cpPo -> { List<AssetMiniProgramsCpPo> miniProgramsNewList = list.stream().map(cpPo -> {
AssetMiniProgramsCpPo assetMiniProgramsCpPo = new AssetMiniProgramsCpPo(); AssetMiniProgramsCpPo assetMiniProgramsCpPo = new AssetMiniProgramsCpPo();
assetMiniProgramsCpPo.setTaskId(id); assetMiniProgramsCpPo.setTaskId(id);
assetMiniProgramsCpPo.setStatus(0);
assetMiniProgramsCpPo.setAssetId(cpPo.getId()); assetMiniProgramsCpPo.setAssetId(cpPo.getId());
BeanUtils.copyProperties(cpPo, assetMiniProgramsCpPo); // 复制属性 BeanUtils.copyProperties(cpPo, assetMiniProgramsCpPo); // 复制属性
// 根据 xtzt 设置 status
if (cpPo.getState().equals("7")) {
assetMiniProgramsCpPo.setStatus(5);
assetMiniProgramsCpPo.setBfyy(null);
assetMiniProgramsCpPo.setBtgyy(null);
} else {
assetMiniProgramsCpPo.setStatus(0);
assetMiniProgramsCpPo.setBfyy(null);
assetMiniProgramsCpPo.setBtgyy(null);
}
return assetMiniProgramsCpPo; // 返回新对象 return assetMiniProgramsCpPo; // 返回新对象
}).collect(Collectors.toList()); // 收集到列表中 }).collect(Collectors.toList()); // 收集到列表中
assetMiniProgramsCpService.saveBatch(miniProgramsNewList); assetMiniProgramsCpService.saveBatch(miniProgramsNewList);
@ -234,9 +255,19 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
List<AssetOfficialAccountCpPo> officialAccountProgramsNewList = list.stream().map(cpPo -> { List<AssetOfficialAccountCpPo> officialAccountProgramsNewList = list.stream().map(cpPo -> {
AssetOfficialAccountCpPo assetOfficialAccountCpPo = new AssetOfficialAccountCpPo(); AssetOfficialAccountCpPo assetOfficialAccountCpPo = new AssetOfficialAccountCpPo();
assetOfficialAccountCpPo.setTaskId(id); assetOfficialAccountCpPo.setTaskId(id);
assetOfficialAccountCpPo.setStatus(0);
assetOfficialAccountCpPo.setAssetId(cpPo.getId()); assetOfficialAccountCpPo.setAssetId(cpPo.getId());
BeanUtils.copyProperties(cpPo, assetOfficialAccountCpPo); // 复制属性 BeanUtils.copyProperties(cpPo, assetOfficialAccountCpPo); // 复制属性
// 根据 xtzt 设置 status
if (cpPo.getGzhzt().equals("7")) {
assetOfficialAccountCpPo.setStatus(5);
assetOfficialAccountCpPo.setBfyy(null);
assetOfficialAccountCpPo.setBtgyy(null);
} else {
assetOfficialAccountCpPo.setStatus(0);
assetOfficialAccountCpPo.setBfyy(null);
assetOfficialAccountCpPo.setBtgyy(null);
}
return assetOfficialAccountCpPo; // 返回新对象 return assetOfficialAccountCpPo; // 返回新对象
}).collect(Collectors.toList()); // 收集到列表中 }).collect(Collectors.toList()); // 收集到列表中
assetOfficialAccountCpService.saveBatch(officialAccountProgramsNewList); assetOfficialAccountCpService.saveBatch(officialAccountProgramsNewList);
@ -255,8 +286,17 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
AssetEmailCpPo emailCpPo = new AssetEmailCpPo(); AssetEmailCpPo emailCpPo = new AssetEmailCpPo();
emailCpPo.setTaskId(id); emailCpPo.setTaskId(id);
emailCpPo.setAssetId(cpPo.getId()); emailCpPo.setAssetId(cpPo.getId());
emailCpPo.setStatus(0);
BeanUtils.copyProperties(cpPo, emailCpPo); // 复制属性 BeanUtils.copyProperties(cpPo, emailCpPo); // 复制属性
// 根据 xtzt 设置 status
if (cpPo.getYjxtzc().equals("2")) {
emailCpPo.setStatus(5);
emailCpPo.setBfyy(null);
emailCpPo.setBtgyy(null);
} else {
emailCpPo.setStatus(0);
emailCpPo.setBfyy(null);
emailCpPo.setBtgyy(null);
}
return emailCpPo; // 返回新对象 return emailCpPo; // 返回新对象
}).collect(Collectors.toList()); // 收集到列表中 }).collect(Collectors.toList()); // 收集到列表中
assetEmailCpService.saveBatch(emailCpNewList); assetEmailCpService.saveBatch(emailCpNewList);
@ -274,8 +314,18 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
AssetAppCpPo appCpPo = new AssetAppCpPo(); AssetAppCpPo appCpPo = new AssetAppCpPo();
appCpPo.setTaskId(id); appCpPo.setTaskId(id);
appCpPo.setAssetId(cpPo.getId()); appCpPo.setAssetId(cpPo.getId());
appCpPo.setStatus(0);
BeanUtils.copyProperties(cpPo, appCpPo); // 复制属性 BeanUtils.copyProperties(cpPo, appCpPo); // 复制属性
// 根据 xtzt 设置 status
if (cpPo.getAppState().equals("7")) {
appCpPo.setStatus(5);
appCpPo.setBfyy(null);
appCpPo.setBtgyy(null);
} else {
appCpPo.setStatus(0);
appCpPo.setBfyy(null);
appCpPo.setBtgyy(null);
}
return appCpPo; // 返回新对象 return appCpPo; // 返回新对象
}).collect(Collectors.toList()); // 收集到列表中 }).collect(Collectors.toList()); // 收集到列表中
assetAppCpService.saveBatch(appCpNewList); assetAppCpService.saveBatch(appCpNewList);
@ -504,57 +554,60 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
if (req.getType() == 0) { if (req.getType() == 0) {
//web资产 //web资产
//是否超期 //是否超期
ifCq(req, assetTask); // ifCq(req, assetTask);
//创建任务流程 //创建任务流程
getTaskStatus(req); getTaskStatus(req);
if (req.getBtgyy() != null) { if (req.getBtgyy() != null) {
assetTaskDao.sh(req); assetTaskDao.sh(req);
// //修改子表和新增历史表 // //修改子表和新增历史表
// updateZiandHistory(req, date);
} else {
//修改子表和新增历史表
updateZiandHistory(req, date); updateZiandHistory(req, date);
//同步主表 //同步主表
taskSaveOrDelete(req); taskSaveOrDelete(req);
} else {
//修改子表和新增历史表
updateZiandHistory(req, date);
} }
} else if (req.getType() == 1) { } else if (req.getType() == 1) {
//小程序资产 //小程序资产
//创建任务流程 //创建任务流程
ifCq(req, assetTask); // ifCq(req, assetTask);
// //创建任务流程 // //创建任务流程
getTaskStatus(req); getTaskStatus(req);
if (req.getBtgyy() != null) { if (req.getBtgyy() != null) {
assetTaskDao.xcxsh(req); assetTaskDao.xcxsh(req);
// //修改子表和新增历史表 // //修改子表和新增历史表
// updateMinZiandHistory(req, date);
} else {
//修改子表和新增历史表
updateMinZiandHistory(req, date); updateMinZiandHistory(req, date);
//同步主表 //同步主表
syb(req); syb(req);
} else {
//修改子表和新增历史表
updateMinZiandHistory(req, date);
} }
} else if (req.getType() == 2) { } else if (req.getType() == 2) {
//公众号资产 //公众号资产
//创建任务流程 //创建任务流程
ifCq(req, assetTask); // ifCq(req, assetTask);
//创建任务流程 //创建任务流程
getTaskStatus(req); getTaskStatus(req);
if (req.getBtgyy() != null) { if (req.getBtgyy() != null) {
assetTaskDao.gzhsh(req); assetTaskDao.gzhsh(req);
// //修改子表和历史表新增 // //修改子表和历史表新增
// updateGzhZiandHistory(req, date);
} else {
//修改子表和历史表新增
updateGzhZiandHistory(req, date); updateGzhZiandHistory(req, date);
//同步主表 //同步主表
syb(req); syb(req);
} else {
//修改子表和历史表新增
updateGzhZiandHistory(req, date);
} }
} else if (req.getType() == 3) { } else if (req.getType() == 3) {
//电子邮件 //电子邮件
//创建任务流程 //创建任务流程
ifCq(req, assetTask); // ifCq(req, assetTask);
//创建任务流程 //创建任务流程
getTaskStatus(req); getTaskStatus(req);
if (req.getBtgyy() != null) { if (req.getBtgyy() != null) {
@ -571,18 +624,19 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
} else if (req.getType() == 4) { } else if (req.getType() == 4) {
//app //app
//创建任务流程 //创建任务流程
ifCq(req, assetTask); // ifCq(req, assetTask);
//创建任务流程 //创建任务流程
getTaskStatus(req); getTaskStatus(req);
if (req.getBtgyy() != null) { if (req.getBtgyy() != null) {
assetTaskDao.appsh(req); assetTaskDao.appsh(req);
// //修改子表和历史表新增 // //修改子表和历史表新增
// updateAppZiandHistory(req, date);
} else {
//修改子表和历史表新增
updateAppZiandHistory(req, date); updateAppZiandHistory(req, date);
//同步主表 //同步主表
syb(req); syb(req);
} else {
//修改子表和历史表新增
updateAppZiandHistory(req, date);
} }
} }
@ -627,21 +681,21 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
req.getAssetAppCpPo().setUpdateTime(date); req.getAssetAppCpPo().setUpdateTime(date);
assetAppCpService.updateById(req.getAssetAppCpPo()); assetAppCpService.updateById(req.getAssetAppCpPo());
//新增历史记录表 //新增历史记录表
AssetAppHistory assetAppHistory = new AssetAppHistory(); // AssetAppHistory assetAppHistory = new AssetAppHistory();
BeanUtils.copyProperties(req.getAssetAppCpPo(), assetAppHistory); // BeanUtils.copyProperties(req.getAssetAppCpPo(), assetAppHistory);
assetAppHistory.setAppId(null); // assetAppHistory.setAppId(null);
assetAppHistoryService.save(assetAppHistory); // assetAppHistoryService.save(assetAppHistory);
} }
private void updateEmailZiandHistory(AssetCurrentShRequest req, Date date) { private void updateEmailZiandHistory(AssetCurrentShRequest req, Date date) {
req.getAssetEmailCpPo().setStatus(req.getStatus()); req.getAssetEmailCpPo().setStatus(req.getStatus());
req.getAssetEmailCpPo().setUpdateTime(date); req.getAssetEmailCpPo().setUpdateTime(date);
assetEmailCpService.updateById(req.getAssetEmailCpPo()); assetEmailCpService.updateById(req.getAssetEmailCpPo());
//新增历史记录表 // //新增历史记录表
AssetEmailHistory assetEmailHistory = new AssetEmailHistory(); // AssetEmailHistory assetEmailHistory = new AssetEmailHistory();
BeanUtils.copyProperties(req.getAssetEmailCpPo(), assetEmailHistory); // BeanUtils.copyProperties(req.getAssetEmailCpPo(), assetEmailHistory);
assetEmailHistory.setEmailId(null); // assetEmailHistory.setEmailId(null);
assetEmailHistoryService.save(assetEmailHistory); // assetEmailHistoryService.save(assetEmailHistory);
} }
private void updateGzhZiandHistory(AssetCurrentShRequest req, Date date) { private void updateGzhZiandHistory(AssetCurrentShRequest req, Date date) {
@ -661,22 +715,22 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
req.getAssetOfficialAccountCpPo().setStatus(req.getStatus()); req.getAssetOfficialAccountCpPo().setStatus(req.getStatus());
req.getAssetOfficialAccountCpPo().setUpdateTime(date); req.getAssetOfficialAccountCpPo().setUpdateTime(date);
assetOfficialAccountCpService.updateById(req.getAssetOfficialAccountCpPo()); assetOfficialAccountCpService.updateById(req.getAssetOfficialAccountCpPo());
//新增历史记录表 // //新增历史记录表
AssetOfficialAccountHistory assetOfficialAccountHistory = new AssetOfficialAccountHistory(); // AssetOfficialAccountHistory assetOfficialAccountHistory = new AssetOfficialAccountHistory();
BeanUtils.copyProperties(req.getAssetOfficialAccountCpPo(), assetOfficialAccountHistory); // BeanUtils.copyProperties(req.getAssetOfficialAccountCpPo(), assetOfficialAccountHistory);
assetOfficialAccountHistory.setAccountId(null); // assetOfficialAccountHistory.setAccountId(null);
assetOfficialAccountHistoryService.save(assetOfficialAccountHistory); // assetOfficialAccountHistoryService.save(assetOfficialAccountHistory);
} }
private void updateMinZiandHistory(AssetCurrentShRequest req, Date date) { private void updateMinZiandHistory(AssetCurrentShRequest req, Date date) {
req.getAssetMiniProgramsCpPo().setStatus(req.getStatus()); req.getAssetMiniProgramsCpPo().setStatus(req.getStatus());
req.getAssetMiniProgramsCpPo().setUpdateTime(date); req.getAssetMiniProgramsCpPo().setUpdateTime(date);
assetMiniProgramsCpService.updateById(req.getAssetMiniProgramsCpPo()); assetMiniProgramsCpService.updateById(req.getAssetMiniProgramsCpPo());
//新增历史记录表 // //新增历史记录表
AssetMiniProgramsHistory assetMiniProgramsHistory = new AssetMiniProgramsHistory(); // AssetMiniProgramsHistory assetMiniProgramsHistory = new AssetMiniProgramsHistory();
BeanUtils.copyProperties(req.getAssetMiniProgramsCpPo(), assetMiniProgramsHistory); // BeanUtils.copyProperties(req.getAssetMiniProgramsCpPo(), assetMiniProgramsHistory);
assetMiniProgramsHistory.setMiniId(null); // assetMiniProgramsHistory.setMiniId(null);
assetMiniProgramsHistoryService.save(assetMiniProgramsHistory); // assetMiniProgramsHistoryService.save(assetMiniProgramsHistory);
} }
private void updateZiandHistory(AssetCurrentShRequest req, Date date) { private void updateZiandHistory(AssetCurrentShRequest req, Date date) {
@ -745,7 +799,7 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
unitOtherConcatCpService.saveBatch(req.getAssetCurrentCpPo().getOtherConcat()); unitOtherConcatCpService.saveBatch(req.getAssetCurrentCpPo().getOtherConcat());
} }
//新增历史记录 //新增历史记录
saveHistory(req, a, b, date, assetCurrentHistory); // saveHistory(req, a, b, date, assetCurrentHistory);
} }
private void saveHistory(AssetCurrentShRequest req, StringBuilder a, StringBuilder b, Date date, AssetCurrentHistory assetCurrentHistory) { private void saveHistory(AssetCurrentShRequest req, StringBuilder a, StringBuilder b, Date date, AssetCurrentHistory assetCurrentHistory) {
@ -969,6 +1023,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
//删除原有数据 //删除原有数据
if (CollectionUtil.isNotEmpty(businessList)) { if (CollectionUtil.isNotEmpty(businessList)) {
assetBusinessFormService.deleteIdList(businessList); assetBusinessFormService.deleteIdList(businessList);
}else{
//将子表数据复制到主表中 //将子表数据复制到主表中
List<AssetBusinessForm> businessFormCpPoList = req.getAssetCurrentCpPo().getOtherConcat().stream().map(cpPo -> { List<AssetBusinessForm> businessFormCpPoList = req.getAssetCurrentCpPo().getOtherConcat().stream().map(cpPo -> {
AssetBusinessForm assetBusinessForm = new AssetBusinessForm(); AssetBusinessForm assetBusinessForm = new AssetBusinessForm();
@ -986,6 +1042,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
if (CollectionUtil.isNotEmpty(netWorkList)) { if (CollectionUtil.isNotEmpty(netWorkList)) {
assetBasicNetworkService.deleteIdList(netWorkList); assetBasicNetworkService.deleteIdList(netWorkList);
}else{
List<AssetBasicNetwork> networksCpPoList = req.getAssetCurrentCpPo().getOtherConcat().stream().map(cpPo -> { List<AssetBasicNetwork> networksCpPoList = req.getAssetCurrentCpPo().getOtherConcat().stream().map(cpPo -> {
AssetBasicNetwork assetBasicNetwork = new AssetBasicNetwork(); AssetBasicNetwork assetBasicNetwork = new AssetBasicNetwork();
BeanUtils.copyProperties(cpPo, assetBasicNetwork); // 复制属性 BeanUtils.copyProperties(cpPo, assetBasicNetwork); // 复制属性
@ -1001,6 +1059,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
//删除原有数据 //删除原有数据
if (CollectionUtil.isNotEmpty(supplyList)) { if (CollectionUtil.isNotEmpty(supplyList)) {
assetSupplyChainService.deleteIdList(supplyList); assetSupplyChainService.deleteIdList(supplyList);
}else{
List<AssetSupplyChain> supplyChainList = req.getAssetCurrentCpPo().getOtherConcat().stream().map(cpPo -> { List<AssetSupplyChain> supplyChainList = req.getAssetCurrentCpPo().getOtherConcat().stream().map(cpPo -> {
AssetSupplyChain assetSupplyChain = new AssetSupplyChain(); AssetSupplyChain assetSupplyChain = new AssetSupplyChain();
BeanUtils.copyProperties(cpPo, assetSupplyChain); // 复制属性 BeanUtils.copyProperties(cpPo, assetSupplyChain); // 复制属性
@ -1015,6 +1075,8 @@ public class AssetTaskServiceImpl extends ServiceImpl<AssetTaskMapper, AssetTask
//删除原有数据 //删除原有数据
if (CollectionUtil.isNotEmpty(unitList)) { if (CollectionUtil.isNotEmpty(unitList)) {
unitOtherConcatService.deleteIdList(unitList); unitOtherConcatService.deleteIdList(unitList);
}else{
List<UnitOtherConcat> unitOtherConcatList = req.getAssetCurrentCpPo().getOtherConcat().stream().map(cpPo -> { List<UnitOtherConcat> unitOtherConcatList = req.getAssetCurrentCpPo().getOtherConcat().stream().map(cpPo -> {
UnitOtherConcat unitOtherConcat = new UnitOtherConcat(); UnitOtherConcat unitOtherConcat = new UnitOtherConcat();
BeanUtils.copyProperties(cpPo, unitOtherConcat); // 复制属性 BeanUtils.copyProperties(cpPo, unitOtherConcat); // 复制属性

@ -207,6 +207,7 @@
</where> </where>
</select> </select>
<select id="zcHc" resultType="com.ruoyi.tc.entity.response.AssestTaskXqresponse"> <select id="zcHc" resultType="com.ruoyi.tc.entity.response.AssestTaskXqresponse">
select b.xtlx, select b.xtlx,
b.xtmc, b.xtmc,
b.dwmc as zcdwmc, b.dwmc as zcdwmc,
@ -969,6 +970,9 @@
LIMIT 1), '1970-01-01 00:00:00') LIMIT 1), '1970-01-01 00:00:00')
) AS latest_update_time; ) AS latest_update_time;
</select> </select>
<select id="findBytaskId" resultType="com.ruoyi.tc.entity.AssetTask" parameterType="java.lang.Integer">
select * from asset_task where id=#{taskId}
</select>
<update id="xcxsh" <update id="xcxsh"
@ -978,7 +982,8 @@
<if test="req.status != null "> <if test="req.status != null ">
status = #{req.status}, status = #{req.status},
</if> </if>
update_time=now() update_time=now(),
btgyy=#{req.btgyy}
</set> </set>
where asset_id = #{req.assetId} and task_id = #{req.taskId} where asset_id = #{req.assetId} and task_id = #{req.taskId}
</update> </update>
@ -990,7 +995,8 @@
<if test="req.status != null "> <if test="req.status != null ">
status = #{req.status}, status = #{req.status},
</if> </if>
update_time=now() update_time=now(),
btgyy=#{req.btgyy}
</set> </set>
where asset_id = #{req.assetId} and task_id = #{req.taskId} where asset_id = #{req.assetId} and task_id = #{req.taskId}
</update> </update>
@ -1002,7 +1008,8 @@
<if test="req.status != null "> <if test="req.status != null ">
status = #{req.status}, status = #{req.status},
</if> </if>
update_time=now() update_time=now(),
btgyy=#{req.btgyy}
</set> </set>
where asset_id = #{req.assetId} and task_id = #{req.taskId} where asset_id = #{req.assetId} and task_id = #{req.taskId}
@ -1119,7 +1126,8 @@
<if test="req.status != null "> <if test="req.status != null ">
status = #{req.status}, status = #{req.status},
</if> </if>
update_time=now() update_time=now(),
btgyy=#{req.btgyy}
</set> </set>
where id = #{req.assetId} and task_id = #{req.taskId} where id = #{req.assetId} and task_id = #{req.taskId}
</update> </update>
@ -1143,7 +1151,8 @@
<if test="req.status != null "> <if test="req.status != null ">
status = #{req.status}, status = #{req.status},
</if> </if>
update_time=now() update_time=now(),
btgyy=#{req.btgyy}
</set> </set>
where asset_id = #{req.assetId} and task_id = #{req.taskId} where asset_id = #{req.assetId} and task_id = #{req.taskId}

Loading…
Cancel
Save