|
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
|
+import com.hotent.base.util.StringUtil;
|
|
|
import com.hotent.base.util.UniqueIdUtil;
|
|
import com.hotent.base.util.UniqueIdUtil;
|
|
|
import com.hotent.baseInfo.manager.AuditedUnitManager;
|
|
import com.hotent.baseInfo.manager.AuditedUnitManager;
|
|
|
import com.hotent.baseInfo.manager.CostDocumentTemplateFileManager;
|
|
import com.hotent.baseInfo.manager.CostDocumentTemplateFileManager;
|
|
@@ -79,6 +80,9 @@ public class CostProjectDocumentManagerImpl extends BaseManagerImpl<CostProjectD
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private UserManager userService;
|
|
private UserManager userService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private CostDocumentTemplateFileManager costTemplateFileManager;
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public CostProjectDocument getDetail(String id) {
|
|
public CostProjectDocument getDetail(String id) {
|
|
|
CostProjectDocument costProjectDocument = this.get(id);
|
|
CostProjectDocument costProjectDocument = this.get(id);
|
|
@@ -262,24 +266,21 @@ public class CostProjectDocumentManagerImpl extends BaseManagerImpl<CostProjectD
|
|
|
costProjectDocumentFile.setProjectId(costProjectApproval.getProjectId());
|
|
costProjectDocumentFile.setProjectId(costProjectApproval.getProjectId());
|
|
|
costProjectDocumentFile.setProjectId(costProjectDocument.getProjectId());
|
|
costProjectDocumentFile.setProjectId(costProjectDocument.getProjectId());
|
|
|
switch (f.getPinyin()) {
|
|
switch (f.getPinyin()) {
|
|
|
- case "JiaGeZhuGuanBuMenHuoChengBenDiaoChaJiGou":
|
|
|
|
|
- costProjectDocumentFile.setDataValue(costProjectApproval.getOrgName());
|
|
|
|
|
- break;
|
|
|
|
|
- case "SongDaWenShuMingCheng":
|
|
|
|
|
- costProjectDocumentFile.setDataValue(costDocument.getWhName());
|
|
|
|
|
- break;
|
|
|
|
|
case "SongDaWenShuWenHao":
|
|
case "SongDaWenShuWenHao":
|
|
|
costProjectDocumentFile.setDataValue(projectDocument.getDocumentNumber());
|
|
costProjectDocumentFile.setDataValue(projectDocument.getDocumentNumber());
|
|
|
break;
|
|
break;
|
|
|
- case "ShouSongDaRen":
|
|
|
|
|
- costProjectDocumentFile.setDataValue(auditedUnit.getContactName());
|
|
|
|
|
- break;
|
|
|
|
|
- case "BeiJianShenDanWeiBanGongDiDian":
|
|
|
|
|
- costProjectDocumentFile.setDataValue(auditedUnit.getAddress());
|
|
|
|
|
- break;
|
|
|
|
|
- default:
|
|
|
|
|
- costProjectDocumentFile.setDataValue("");
|
|
|
|
|
- break;
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ if (StringUtils.isNotBlank(f.getTableName())){
|
|
|
|
|
+ if(StringUtil.isEmpty(costProjectDocumentFile.getWhereValue())){
|
|
|
|
|
+ costProjectDocumentFile.setWhereValue(costProjectApproval.getProjectId());
|
|
|
|
|
+ }else {
|
|
|
|
|
+ String whereValue1 = costProjectDocumentFile.getWhereValue();
|
|
|
|
|
+ String replace = whereValue1.replace("?", "'" + costProjectApproval.getProjectId() + "'");
|
|
|
|
|
+ costProjectDocumentFile.setWhereValue(replace);
|
|
|
|
|
+ }
|
|
|
|
|
+ String colValue = costTemplateFileManager.getColValue(costProjectDocumentFile.getTableName(), costProjectDocumentFile.getColName(), costProjectDocumentFile.getWhereName(), costProjectDocumentFile.getWhereValue());
|
|
|
|
|
+ //获取whereValue字段值
|
|
|
|
|
+ costProjectDocumentFile.setDataValue(colValue);
|
|
|
}
|
|
}
|
|
|
arrayList.add(costProjectDocumentFile);
|
|
arrayList.add(costProjectDocumentFile);
|
|
|
});
|
|
});
|