|
@@ -11,6 +11,7 @@ import com.steerinfo.framework.service.pagehelper.PageHelper;
|
|
import io.swagger.annotations.*;
|
|
import io.swagger.annotations.*;
|
|
import io.swagger.models.auth.In;
|
|
import io.swagger.models.auth.In;
|
|
import oracle.jdbc.proxy.annotation.Post;
|
|
import oracle.jdbc.proxy.annotation.Post;
|
|
|
|
+import org.apache.commons.lang.time.FastDateFormat;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
@@ -346,7 +347,7 @@ public class UniversalController extends BaseRESTfulController {
|
|
if(type != null){
|
|
if(type != null){
|
|
mapValue.put("type", type);
|
|
mapValue.put("type", type);
|
|
}
|
|
}
|
|
- if(index != null){
|
|
|
|
|
|
+ if(index != null && !"".equals(index) && !"null".equals(index)){
|
|
mapValue.put("index", index);
|
|
mapValue.put("index", index);
|
|
}
|
|
}
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
@@ -536,7 +537,7 @@ public class UniversalController extends BaseRESTfulController {
|
|
if(mapValue == null) {
|
|
if(mapValue == null) {
|
|
mapValue = new HashMap<>();
|
|
mapValue = new HashMap<>();
|
|
}
|
|
}
|
|
- if(index != null){
|
|
|
|
|
|
+ if(index != null && !"".equals(index) && !"null".equals(index)){
|
|
mapValue.put("index", index);
|
|
mapValue.put("index", index);
|
|
}
|
|
}
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
@@ -711,16 +712,13 @@ public class UniversalController extends BaseRESTfulController {
|
|
@PostMapping("/getOilFormula")
|
|
@PostMapping("/getOilFormula")
|
|
public RESTfulResult getOilFormula(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
public RESTfulResult getOilFormula(@RequestBody(required = false) Map<String,Object> mapValue,
|
|
Integer apiId,
|
|
Integer apiId,
|
|
- String con,
|
|
|
|
Integer pageNum,
|
|
Integer pageNum,
|
|
- Integer pageSize
|
|
|
|
- ) {
|
|
|
|
|
|
+ Integer pageSize,
|
|
|
|
+ String con) {
|
|
if (mapValue == null) {
|
|
if (mapValue == null) {
|
|
mapValue = new HashMap<>();
|
|
mapValue = new HashMap<>();
|
|
}
|
|
}
|
|
- if (con!=null){
|
|
|
|
- mapValue.put("con", "%"+con+"%");
|
|
|
|
- }
|
|
|
|
|
|
+ mapValue.put("con", con);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
//分页查询数据
|
|
//分页查询数据
|
|
List<Map<String, Object>> columnList = universalMapper.getOilFormula(mapValue);
|
|
List<Map<String, Object>> columnList = universalMapper.getOilFormula(mapValue);
|
|
@@ -928,6 +926,18 @@ public class UniversalController extends BaseRESTfulController {
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("删除计量实绩")
|
|
|
|
+ @PostMapping("/linkageDeleteTransportOrder")
|
|
|
|
+ public int linkageDeleteTransportOrder(@RequestBody(required = false)List<Map<String,Object>>mapList ){
|
|
|
|
+ try {
|
|
|
|
+ return universalService.linkageDeleteTransportOrder(mapList);
|
|
|
|
+ } catch (IOException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ return 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
@ApiModelProperty(value = "获取仓库月台")
|
|
@ApiModelProperty(value = "获取仓库月台")
|
|
@GetMapping("/getSteelWarehouse")
|
|
@GetMapping("/getSteelWarehouse")
|
|
public List<Map<String, Object>> getSteelWarehouse(){
|
|
public List<Map<String, Object>> getSteelWarehouse(){
|
|
@@ -1113,4 +1123,17 @@ public class UniversalController extends BaseRESTfulController {
|
|
public String getReleaseFlag() {
|
|
public String getReleaseFlag() {
|
|
return universalMapper.getReleaseFlag();
|
|
return universalMapper.getReleaseFlag();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @ApiOperation("根据名称查询收货客户")
|
|
|
|
+ @PostMapping("/getConsigneeInfo")
|
|
|
|
+ public Map<String,Object> getConsigneeInfo(String consigneeName){
|
|
|
|
+ return universalMapper.getConsigneeInfo(consigneeName);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("收货客户查询")
|
|
|
|
+ @PostMapping("/getColumnNoRoutList")
|
|
|
|
+ public List<String> getColumnNoRoutList(@RequestBody(required = false) Map<String,Object> map) {
|
|
|
|
+ return universalMapper.getColumnNoRoutList(map);
|
|
|
|
+ }
|
|
}
|
|
}
|