|
|
@@ -432,12 +432,36 @@ public class ResumptionBusiness {
|
|
|
r.setPointdataid(IDHelper.id());
|
|
|
}
|
|
|
});
|
|
|
+ List<AppResumptionDataNfc> nfcData = appResumptionDataNfcService.findDataByResumptionId(resumption.getId());
|
|
|
+
|
|
|
//获取nfc
|
|
|
- List<ResumptionNfcVo> nfclists = appResumptionDataNfcService.findNfcByAreaIdAndOrgId(nfcBindIdList, resumption.getOrgId(), resumption.getPlanId());
|
|
|
+ List<ResumptionNfcVo> nfclists = appResumptionDataNfcService.findNfcByAreaIdAndOrgId(nfcBindIdList,
|
|
|
+ resumption.getOrgId(), resumption.getPlanId());
|
|
|
|
|
|
//对nfc进行去重
|
|
|
List<ResumptionNfcVo> nfclist = nfclists.stream().collect(Collectors.collectingAndThen
|
|
|
(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(ResumptionNfcVo -> ResumptionNfcVo.getNfccdoe()))), ArrayList::new));
|
|
|
+
|
|
|
+
|
|
|
+ //如果数据存在则填充数据
|
|
|
+ for (ResumptionNfcVo nfcVo : nfclist) {
|
|
|
+ Long nfcid = nfcVo.getNfcId();
|
|
|
+ nfcVo.setStatus(0);
|
|
|
+ if (nfcData.size() > 0) {
|
|
|
+ for (AppResumptionDataNfc nfcDatum : nfcData) {
|
|
|
+ Long pId = nfcDatum.getNfcId();
|
|
|
+ if (nfcid.equals(pId)) {
|
|
|
+ if (nfcDatum.getStatus() != null) {
|
|
|
+ nfcVo.setStatus(nfcDatum.getStatus());
|
|
|
+ }
|
|
|
+ nfcVo.setScanMethod(nfcDatum.getScanMethod().longValue());
|
|
|
+ nfcVo.setImg(nfcDatum.getImg());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
List<AppResumptionDataRemarkimg> allImgs = appResumptionTaskDataRemarkimgService
|
|
|
.list(new LambdaUpdateWrapper<AppResumptionDataRemarkimg>()
|
|
|
.eq(AppResumptionDataRemarkimg::getResumptionId, request.getTaskId()));
|
|
|
@@ -511,7 +535,9 @@ public class ResumptionBusiness {
|
|
|
Date time = new Date();
|
|
|
List<AppResumptionDataNfc> nfcList = request.getNfcData();
|
|
|
//传值的时候,要新增nfcId(页面取checkId)pointId
|
|
|
- nfcList.stream().forEach(n -> n.setResumptionId(request.getResumptionId()).setId(IDHelper.id()));
|
|
|
+ nfcList.stream().forEach(n -> {
|
|
|
+ n.setResumptionId(request.getResumptionId()).setId(IDHelper.id());
|
|
|
+ });
|
|
|
//传值的时候,要新增nfcId(页面取checkId)pointId
|
|
|
appResumptionDataNfcService.saveBatch(nfcList);
|
|
|
//获取未扫描的nfc数据
|
|
|
@@ -520,7 +546,7 @@ public class ResumptionBusiness {
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
sdf.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai"));
|
|
|
List<CoreResumptionDataProtection> resumptionProtections = new ArrayList<>();
|
|
|
- SysOrg org= remoteOrgService.selectSysOrgById(resumption.getOrgId(), SecurityConstants.INNER);
|
|
|
+ SysOrg org = remoteOrgService.selectSysOrgById(resumption.getOrgId(), SecurityConstants.INNER);
|
|
|
// List<AppResumptionTaskDataRemark> remarkDtoList = new ArrayList<>();
|
|
|
for (AppResumptionDataDto appResumptionDataDto : resumptionDataList) {
|
|
|
AppResumptionData data = new AppResumptionData();
|
|
|
@@ -577,9 +603,9 @@ public class ResumptionBusiness {
|
|
|
}
|
|
|
|
|
|
if (ObjectUtil.equal(request.getIsSubmit(), 1) && ObjectUtil.equal(appResumptionDataDto.getResValue(), 1)) {
|
|
|
- if(! NumberUtil.isNumber(appResumptionDataDto.getRectificationDeadline())){
|
|
|
- throw new ServerException(String.format("履职内容‘%s’的整改期限值错误",appResumptionDataDto.getPointname()));
|
|
|
- }
|
|
|
+ if (!NumberUtil.isNumber(appResumptionDataDto.getRectificationDeadline())) {
|
|
|
+ throw new ServerException(String.format("履职内容‘%s’的整改期限值错误", appResumptionDataDto.getPointname()));
|
|
|
+ }
|
|
|
|
|
|
Question question = Question.builder()
|
|
|
.srcTaskId(resumption.getId())
|