Commit bfcc235e by 翁国栋

草稿箱

parent 48e97da8
...@@ -1262,11 +1262,13 @@ public class SpmkController { ...@@ -1262,11 +1262,13 @@ public class SpmkController {
.approveName(spmkApproveSummaryDto.getApproveName()) .approveName(spmkApproveSummaryDto.getApproveName())
.assoType(spmkApproveSummaryDto.getAssoType()) .assoType(spmkApproveSummaryDto.getAssoType())
.sts(ApproveSummarySts.IN.ordinal()) .sts(ApproveSummarySts.IN.ordinal())
.digest(spmkApproveSummaryDto.getDigest())
.updateTime(new Date())
.currentApprover(currentApprover).isUrgent(spmkApproveSummaryDto.getIsUrgent()) .currentApprover(currentApprover).isUrgent(spmkApproveSummaryDto.getIsUrgent())
.build(); .build();
if(spmkApproveSummaryDto.getId()!=null){ if(spmkApproveSummaryDto.getId()!=null){
as.setId(spmkApproveSummaryDto.getId()); as.setId(spmkApproveSummaryDto.getId());
as.setUpdateTime(new Date());
} }
if (!as.insertOrUpdate()) { if (!as.insertOrUpdate()) {
......
...@@ -168,7 +168,7 @@ public class SpmkServiceImpl implements SpmkService{ ...@@ -168,7 +168,7 @@ public class SpmkServiceImpl implements SpmkService{
SpmkApproveDetailDrafts ad = spmkApproveDetailDraftsMapper.selectOne(new QueryWrapper<SpmkApproveDetailDrafts>().lambda().eq(SpmkApproveDetailDrafts::getApproveSummaryId, asId)); SpmkApproveDetailDrafts ad = spmkApproveDetailDraftsMapper.selectOne(new QueryWrapper<SpmkApproveDetailDrafts>().lambda().eq(SpmkApproveDetailDrafts::getApproveSummaryId, asId));
SpmkApproveDrafts sum = null; SpmkApproveDrafts sum = null;
if(ad != null) { if(ad != null) {
sum = SpmkApproveDrafts.builder().build().selectOne(new QueryWrapper<SpmkApproveDrafts>().lambda().select(SpmkApproveDrafts::getId,SpmkApproveDrafts::getEmpNum,SpmkApproveDrafts::getSts,SpmkApproveDrafts::getCreateTime) sum = SpmkApproveDrafts.builder().build().selectOne(new QueryWrapper<SpmkApproveDrafts>().lambda().select(SpmkApproveDrafts::getId,SpmkApproveDrafts::getEmpNum,SpmkApproveDrafts::getSts,SpmkApproveDrafts::getCreateTime,SpmkApproveDrafts::getDigest)
.eq(SpmkApproveDrafts::getId, ad.getApproveSummaryId())); .eq(SpmkApproveDrafts::getId, ad.getApproveSummaryId()));
} }
......
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