Commit 5accba1e authored by 廖旭伟's avatar 廖旭伟

证照申请保存二维码

parent cc61569b
...@@ -59,7 +59,7 @@ public class ReadExcelPictureUtil { ...@@ -59,7 +59,7 @@ public class ReadExcelPictureUtil {
File picDirF = null; File picDirF = null;
String imageName = new Date().getTime() + ".png"; String imageName = new Date().getTime() + ".png";
String imagePath = "/file/uploadfile/"+imageName; String imagePath = "/file/fileupload/"+imageName;
String filePath = root + imagePath; String filePath = root + imagePath;
FileOutputStream fout; FileOutputStream fout;
...@@ -101,7 +101,7 @@ public class ReadExcelPictureUtil { ...@@ -101,7 +101,7 @@ public class ReadExcelPictureUtil {
String point = hSSFClientAnchor.getRow1() + "," + hSSFClientAnchor.getCol1(); String point = hSSFClientAnchor.getRow1() + "," + hSSFClientAnchor.getCol1();
String imageName = new Date().getTime() + ".png"; String imageName = new Date().getTime() + ".png";
String imagePath = "/file/uploadfile/"+imageName; String imagePath = "/file/fileupload/"+imageName;
String filePath = "D:/mortals/app/data/cpm" + imagePath; String filePath = "D:/mortals/app/data/cpm" + imagePath;
FileOutputStream fout; FileOutputStream fout;
......
...@@ -70,6 +70,7 @@ public class ChildLicenseServiceImpl extends AbstractCRUDServiceImpl<ChildLicens ...@@ -70,6 +70,7 @@ public class ChildLicenseServiceImpl extends AbstractCRUDServiceImpl<ChildLicens
entity.setBusinessPlace(applyLogEntity.getBusinessPlace()); entity.setBusinessPlace(applyLogEntity.getBusinessPlace());
entity.setLicensedItems(applyLogEntity.getLicenseProject()); entity.setLicensedItems(applyLogEntity.getLicenseProject());
entity.setFormStyleContent(item.getTemplateContent()); entity.setFormStyleContent(item.getTemplateContent());
entity.setFormContent(item.getFormContent());
entity.setProcessStatus(ProcessStatusEnum.未处理.getValue()); entity.setProcessStatus(ProcessStatusEnum.未处理.getValue());
entity.setCreateTime(applyLogEntity.getCreateTime()); entity.setCreateTime(applyLogEntity.getCreateTime());
entity.setCreateUserId(applyLogEntity.getCreateUserId()); entity.setCreateUserId(applyLogEntity.getCreateUserId());
......
...@@ -25,4 +25,6 @@ public class ApplyLogVo extends BaseEntityLong { ...@@ -25,4 +25,6 @@ public class ApplyLogVo extends BaseEntityLong {
/** 子证信息 */ /** 子证信息 */
List<ChildLicenseEntity> childLicense; List<ChildLicenseEntity> childLicense;
private String processStatus;
} }
\ No newline at end of file
...@@ -128,6 +128,18 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap ...@@ -128,6 +128,18 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
return query; return query;
} }
@Override
protected void findAfter(ApplyLogEntity params, PageInfo pageInfo, Context context, List<ApplyLogEntity> list) throws AppException {
if(CollectionUtils.isNotEmpty(list)){
for(ApplyLogEntity entity:list){
List<ChildLicenseEntity> childLicenseList = childLicenseService.find(new ChildLicenseQuery().applyId(entity.getId()));
Map<Integer,List<ChildLicenseEntity>> group = childLicenseList.stream().collect(Collectors.groupingBy(x->x.getProcessStatus()));
int pCount = group.get(1).size();
entity.setProcessStatus(pCount+"/"+childLicenseList.size());
}
}
}
@Override @Override
protected void validData(ApplyLogEntity entity, Context context) throws AppException { protected void validData(ApplyLogEntity entity, Context context) throws AppException {
if(StringUtils.isEmpty(entity.getCertificateCode())){ if(StringUtils.isEmpty(entity.getCertificateCode())){
......
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