rev:合同在途修改为下拉框
This commit is contained in:
@@ -177,5 +177,18 @@
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
IF 输入.flag = "7"
|
||||
QUERY
|
||||
SELECT
|
||||
DISTINCT PURCHASE.NAME
|
||||
FROM
|
||||
PURCHASE_CONTRACT_VIEW PURCHASE
|
||||
where
|
||||
PURCHASE.STATUSFLAG = '1'
|
||||
AND PURCHASE.DEL_FLAG = '0'
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -109,6 +109,13 @@ public class StatisticalReportController {
|
||||
return new ResponseEntity<>(statisticalReportService.
|
||||
query3(whereJson),HttpStatus.OK);
|
||||
}
|
||||
@GetMapping("/supplier")
|
||||
@Log("查询erp供应商")
|
||||
@ApiOperation("查询erp供应商")
|
||||
public ResponseEntity<Object> supplier(){
|
||||
return new ResponseEntity<>(statisticalReportService.
|
||||
getSupplier(),HttpStatus.OK);
|
||||
}
|
||||
@GetMapping("/query4")
|
||||
@Log("查询月生产计划")
|
||||
@ApiOperation("查询月生产计划")
|
||||
|
||||
@@ -48,6 +48,8 @@ public interface StatisticalReportService {
|
||||
|
||||
JSONArray query3(Map whereJson);
|
||||
|
||||
JSONArray getSupplier();
|
||||
|
||||
JSONArray query4(Map whereJson);
|
||||
|
||||
|
||||
|
||||
@@ -347,10 +347,10 @@ public class StatisticalReportServiceImpl implements StatisticalReportService {
|
||||
JSONObject map = new JSONObject();
|
||||
map.put("flag", "4");
|
||||
map.put("ext_id", jsonMater.getString("ext_id"));
|
||||
// JSONObject num_jo = null;
|
||||
JSONObject num_jo = null;
|
||||
|
||||
|
||||
JSONObject num_jo = WQL.getWO("QL_ERP").addParamMap(map).setDbname("dataSource1").process().uniqueResult(0);
|
||||
// JSONObject num_jo = WQL.getWO("QL_ERP").addParamMap(map).setDbname("dataSource1").process().uniqueResult(0);
|
||||
|
||||
|
||||
|
||||
@@ -586,6 +586,15 @@ public class StatisticalReportServiceImpl implements StatisticalReportService {
|
||||
return ja;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONArray getSupplier() {
|
||||
JSONArray ja = WQL.getWO("QL_ERP")
|
||||
.setDbname("dataSource1")
|
||||
.addParam("flag", "7")
|
||||
.process().getResultJSONArray(0);
|
||||
return ja;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONArray query4(Map whereJson) {
|
||||
HashMap<String, String> map = new HashMap<>(whereJson);
|
||||
|
||||
Reference in New Issue
Block a user