[修改] 草稿删除,删除业务数据
This commit is contained in:
@@ -54,4 +54,6 @@ public interface PowerApplyActDao extends BaseMapper<PowerApplyAct> {
|
|||||||
List<PowerApplyAct> selectActListBydataId(@Param("dataId")String dataId);
|
List<PowerApplyAct> selectActListBydataId(@Param("dataId")String dataId);
|
||||||
|
|
||||||
int batchDel(@Param("ids") List<String> ids);
|
int batchDel(@Param("ids") List<String> ids);
|
||||||
|
|
||||||
|
boolean deleteByDataId(String dataId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,4 +47,7 @@ public interface TtReportManageActDao extends BaseMapper<TtReportManageAct> {
|
|||||||
List<TtReportManageAct> selectByDataId(String dataId);
|
List<TtReportManageAct> selectByDataId(String dataId);
|
||||||
|
|
||||||
TtReportManageAct selectByPrcId(String prcId);
|
TtReportManageAct selectByPrcId(String prcId);
|
||||||
|
|
||||||
|
boolean deleteByDataId(String dataId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,6 +67,10 @@
|
|||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
<update id="deleteByDataId">
|
||||||
|
UPDATE power_apply_act set del_flag = 1
|
||||||
|
where data_id = #{dataId}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
|
||||||
<!-- 根据查询VO进行分页查询 -->
|
<!-- 根据查询VO进行分页查询 -->
|
||||||
|
|||||||
@@ -90,6 +90,10 @@
|
|||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
|
<update id="deleteByDataId">
|
||||||
|
UPDATE <include refid="TableName"/> set del_flag = 1
|
||||||
|
where data_id = #{dataId}
|
||||||
|
</update>
|
||||||
|
|
||||||
<!-- 根据查询VO进行分页查询 -->
|
<!-- 根据查询VO进行分页查询 -->
|
||||||
<select id="selectPage" resultMap="BaseResultMap">
|
<select id="selectPage" resultMap="BaseResultMap">
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -67,6 +67,10 @@
|
|||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
<update id="deleteByDataId">
|
||||||
|
UPDATE power_apply_act set del_flag = 1
|
||||||
|
where data_id = #{dataId}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
|
||||||
<!-- 根据查询VO进行分页查询 -->
|
<!-- 根据查询VO进行分页查询 -->
|
||||||
|
|||||||
@@ -90,6 +90,10 @@
|
|||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
|
<update id="deleteByDataId">
|
||||||
|
UPDATE <include refid="TableName"/> set del_flag = 1
|
||||||
|
where data_id = #{dataId}
|
||||||
|
</update>
|
||||||
|
|
||||||
<!-- 根据查询VO进行分页查询 -->
|
<!-- 根据查询VO进行分页查询 -->
|
||||||
<select id="selectPage" resultMap="BaseResultMap">
|
<select id="selectPage" resultMap="BaseResultMap">
|
||||||
|
|||||||
+32
-1
@@ -894,16 +894,47 @@ public class TodoTaskController {
|
|||||||
|
|
||||||
@ApiOperation(value = "删除草稿", notes = "删除草稿")
|
@ApiOperation(value = "删除草稿", notes = "删除草稿")
|
||||||
@GetMapping("/deleteDraft")
|
@GetMapping("/deleteDraft")
|
||||||
public Wrapper<String> deleteDraft(String id) {
|
public Wrapper<String> deleteDraft(String id,String prcType,String dataId) {
|
||||||
//iBusProcessNameService.removeById(id);
|
//iBusProcessNameService.removeById(id);
|
||||||
//2022-10-11修改为逻辑删除 如果物理删除,会影响发号器计算的编号数量。导致编号重复。
|
//2022-10-11修改为逻辑删除 如果物理删除,会影响发号器计算的编号数量。导致编号重复。
|
||||||
BusProcessName busProcessName = new BusProcessName();
|
BusProcessName busProcessName = new BusProcessName();
|
||||||
busProcessName.setId(id);
|
busProcessName.setId(id);
|
||||||
busProcessName.setSubmitStatus(SubmitStatusEnum.DELETE.getValue());
|
busProcessName.setSubmitStatus(SubmitStatusEnum.DELETE.getValue());
|
||||||
this.iBusProcessNameService.updateById(busProcessName);
|
this.iBusProcessNameService.updateById(busProcessName);
|
||||||
|
deleteData(prcType,dataId);
|
||||||
return WrapMapper.ok("删除成功");
|
return WrapMapper.ok("删除成功");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除业务数据
|
||||||
|
* @param prcType
|
||||||
|
* @param dataId
|
||||||
|
*/
|
||||||
|
private void deleteData(String prcType, String dataId) {
|
||||||
|
if ("".equals(prcType)){
|
||||||
|
//预览
|
||||||
|
powerApplyActDao.deleteByDataId(dataId);
|
||||||
|
}else if ("1".equals(prcType)){
|
||||||
|
//预览
|
||||||
|
powerApplyActDao.deleteByDataId(dataId);
|
||||||
|
} else if ("2".equals(prcType)){
|
||||||
|
//预览 + 下载
|
||||||
|
powerApplyActDao.deleteByDataId(dataId);
|
||||||
|
}else if ("3".equals(prcType)){
|
||||||
|
//下载
|
||||||
|
powerApplyActDao.deleteByDataId(dataId);
|
||||||
|
} else if("4".equals(prcType)){
|
||||||
|
//上传
|
||||||
|
ttReportManageActDao.deleteByDataId(dataId);
|
||||||
|
|
||||||
|
}else if("5".equals(prcType)){
|
||||||
|
//编辑
|
||||||
|
ttReportManageActDao.deleteByDataId(dataId);
|
||||||
|
}else {
|
||||||
|
throw new AdcDaBaseException("没有流程类型"+prcType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "已发流程", notes = "已发流程")
|
@ApiOperation(value = "已发流程", notes = "已发流程")
|
||||||
@PostMapping("/issuedProcess")
|
@PostMapping("/issuedProcess")
|
||||||
public Page IssuedProcess(@RequestBody TaskCommonQuery taskCommonQuery) {
|
public Page IssuedProcess(@RequestBody TaskCommonQuery taskCommonQuery) {
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user