|
|
@@ -498,6 +498,11 @@ public class ExcelTabController extends BladeController {
|
|
|
ExcelTab excelTab = new ExcelTab();
|
|
|
if (wbsExclTabParmVO.getId() != null) {// 修改
|
|
|
excelTab = excelTabService.getById(wbsExclTabParmVO.getId());
|
|
|
+ if(excelTab.getTabId()!=null){
|
|
|
+ if(!excelTab.getName().equals(wbsExclTabParmVO.getNodeName())){
|
|
|
+ throw new ServiceException("当前清表已存在元素表,不允许修改");
|
|
|
+ }
|
|
|
+ }
|
|
|
excelTab.setName(wbsExclTabParmVO.getNodeName());
|
|
|
excelTab.setTabType(wbsExclTabParmVO.getTabType());
|
|
|
} else { // 新增
|
|
|
@@ -5157,7 +5162,7 @@ public class ExcelTabController extends BladeController {
|
|
|
return R.data(query);
|
|
|
}
|
|
|
|
|
|
- @Scheduled(cron = "0 16 18 * * ?")
|
|
|
+ //@Scheduled(cron = "0 25 11 * * ?")
|
|
|
@GetMapping("/checkAllNodeDate")
|
|
|
public void checkAllNodeDate() throws Exception {
|
|
|
String sql="select * from m_wbs_tree_contract where is_deleted=0 and type=2 and date_is_complete=2 AND html_url is not null and p_id is not null";
|
|
|
@@ -5173,11 +5178,11 @@ public class ExcelTabController extends BladeController {
|
|
|
if(parent==null){
|
|
|
continue;
|
|
|
}
|
|
|
- String informationSql="select * from u_information_query where wbs_id="+parent.getPKeyId()+" and contract_id="+parent.getContractId()+" and is_deleted=0";
|
|
|
- List<InformationQuery> query = jdbcTemplate.query(informationSql, new BeanPropertyRowMapper<>(InformationQuery.class));
|
|
|
- if(query.isEmpty()||query.get(0).getStatus()!=0){
|
|
|
- continue;
|
|
|
- }
|
|
|
+// String informationSql="select * from u_information_query where wbs_id="+parent.getPKeyId()+" and contract_id="+parent.getContractId()+" and is_deleted=0";
|
|
|
+// List<InformationQuery> query = jdbcTemplate.query(informationSql, new BeanPropertyRowMapper<>(InformationQuery.class));
|
|
|
+// if(query.isEmpty()||query.get(0).getStatus()!=0){
|
|
|
+// continue;
|
|
|
+// }
|
|
|
List<WbsTreeContract> wbsTreeContractList = entry.getValue();
|
|
|
boolean flag=true;
|
|
|
for (WbsTreeContract contract : wbsTreeContractList) {
|