|
|
|
|
@ -4,6 +4,7 @@ import com.alibaba.excel.EasyExcel; |
|
|
|
|
import com.alibaba.excel.util.StringUtils; |
|
|
|
|
import com.alibaba.excel.write.style.column.SimpleColumnWidthStyleStrategy; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
|
import io.swagger.v3.oas.annotations.Parameter; |
|
|
|
|
@ -183,11 +184,11 @@ public class BsEfficiencyTaskController extends BladeController { |
|
|
|
|
if (subTask.getStatus() == null || subTask.getStatus() != BsEfficiencyTaskEnum.STATUS_FINISHED.getCode()) { |
|
|
|
|
R.fail("绩效任务明细已经重置了"); |
|
|
|
|
} |
|
|
|
|
BsEfficiencyTaskEntity upd = new BsEfficiencyTaskEntity(); |
|
|
|
|
upd.setId(bsEfficiencyTask.getId()); |
|
|
|
|
upd.setAttachId(-1L); |
|
|
|
|
upd.setStatus(BsEfficiencyTaskEnum.STATUS_IN_PROGRESS.getCode()); |
|
|
|
|
return R.status(bsEfficiencyTaskService.saveOrUpdate(upd)); |
|
|
|
|
LambdaUpdateWrapper<BsEfficiencyTaskEntity> wrapper = new LambdaUpdateWrapper<>(); |
|
|
|
|
wrapper.eq(BsEfficiencyTaskEntity::getId, bsEfficiencyTask.getId()) |
|
|
|
|
.set(BsEfficiencyTaskEntity::getAttachId, null) |
|
|
|
|
.set(BsEfficiencyTaskEntity::getStatus, BsEfficiencyTaskEnum.STATUS_IN_PROGRESS.getCode()); |
|
|
|
|
return R.status(bsEfficiencyTaskService.update(null, wrapper)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|