|
@@ -13,6 +13,7 @@ import java.util.stream.Collectors;
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
import javax.sql.DataSource;
|
|
import javax.sql.DataSource;
|
|
|
|
|
|
|
|
|
|
+import easydo.technology.model.*;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
import org.springframework.http.ResponseEntity;
|
|
@@ -30,14 +31,6 @@ import easydo.technology.annotation.WebLog;
|
|
|
import easydo.technology.components.JdbcClient;
|
|
import easydo.technology.components.JdbcClient;
|
|
|
import easydo.technology.enums.ChengfaEnum;
|
|
import easydo.technology.enums.ChengfaEnum;
|
|
|
import easydo.technology.exception.BizException;
|
|
import easydo.technology.exception.BizException;
|
|
|
-import easydo.technology.model.Message;
|
|
|
|
|
-import easydo.technology.model.Purchase;
|
|
|
|
|
-import easydo.technology.model.PurchaseBidNotice;
|
|
|
|
|
-import easydo.technology.model.PurchaseContract;
|
|
|
|
|
-import easydo.technology.model.PurchasePlan;
|
|
|
|
|
-import easydo.technology.model.Supplier;
|
|
|
|
|
-import easydo.technology.model.SupplierBank;
|
|
|
|
|
-import easydo.technology.model.SysUser;
|
|
|
|
|
import easydo.technology.model.vo.ContractVo;
|
|
import easydo.technology.model.vo.ContractVo;
|
|
|
import easydo.technology.model.vo.GLDMessage;
|
|
import easydo.technology.model.vo.GLDMessage;
|
|
|
import easydo.technology.model.vo.MDMDept;
|
|
import easydo.technology.model.vo.MDMDept;
|
|
@@ -89,6 +82,7 @@ public class ApiController {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // TODO: 2024-9-25 projectId
|
|
|
@WebLog
|
|
@WebLog
|
|
|
@RequestMapping(value = "/bidNotice/getList")
|
|
@RequestMapping(value = "/bidNotice/getList")
|
|
|
public Object getNoticeList(@RequestBody Map<String, Object> map) throws Exception {
|
|
public Object getNoticeList(@RequestBody Map<String, Object> map) throws Exception {
|
|
@@ -103,7 +97,7 @@ public class ApiController {
|
|
|
connection = dataSource.getConnection();
|
|
connection = dataSource.getConnection();
|
|
|
|
|
|
|
|
map.put("status", ChengfaEnum.PURCHASE_STATUS_DONE.getValue());
|
|
map.put("status", ChengfaEnum.PURCHASE_STATUS_DONE.getValue());
|
|
|
- map.put("projectIdBegin", 0);
|
|
|
|
|
|
|
+ map.put("gldProjectIdBegin", 1);
|
|
|
list = jdbcClient.getJdbcList(map, PurchaseBidNotice.class, connection);
|
|
list = jdbcClient.getJdbcList(map, PurchaseBidNotice.class, connection);
|
|
|
|
|
|
|
|
for (PurchaseBidNotice model : list) {
|
|
for (PurchaseBidNotice model : list) {
|
|
@@ -118,6 +112,11 @@ public class ApiController {
|
|
|
plan = jdbcClient.getJdbcModelById(plan, connection);
|
|
plan = jdbcClient.getJdbcModelById(plan, connection);
|
|
|
model.setContractPlanCode(plan.getContractPlanCode());
|
|
model.setContractPlanCode(plan.getContractPlanCode());
|
|
|
model.setContractPlanName(plan.getContractPlanName());
|
|
model.setContractPlanName(plan.getContractPlanName());
|
|
|
|
|
+
|
|
|
|
|
+ ProjectInfo projectInfo = new ProjectInfo();
|
|
|
|
|
+ projectInfo.setId(model.getProjectId());
|
|
|
|
|
+ projectInfo = jdbcClient.getJdbcModelById(projectInfo, connection);
|
|
|
|
|
+ model.setProjectId(projectInfo.getGldProjectId());
|
|
|
}
|
|
}
|
|
|
return new ResponseEntity<>(list, HttpStatus.OK);
|
|
return new ResponseEntity<>(list, HttpStatus.OK);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|