|
@@ -95,6 +95,9 @@ public class AmsContractTruckPriceController extends BaseRESTfulController {
|
|
mapValue.put("con","%" + con + "%");
|
|
mapValue.put("con","%" + con + "%");
|
|
}
|
|
}
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
PageHelper.startPage(pageNum,pageSize);
|
|
|
|
+ if ("materialNames".equals(mapValue.get("orderField"))){
|
|
|
|
+ mapValue.put("orderField",null);
|
|
|
|
+ }
|
|
List<Map<String, Object>> amsContractTransportPrice1 = amsContractTruckPriceService.getInwardContractPrice(mapValue);
|
|
List<Map<String, Object>> amsContractTransportPrice1 = amsContractTruckPriceService.getInwardContractPrice(mapValue);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, null,amsContractTransportPrice1);
|
|
PageListAdd pageList = columnDataUtil.tableColumnData(apiId, null,amsContractTransportPrice1);
|
|
return success(pageList);
|
|
return success(pageList);
|
|
@@ -331,10 +334,16 @@ public class AmsContractTruckPriceController extends BaseRESTfulController {
|
|
public Map<String,Object> getInwardPriceBy(@RequestBody(required = false) Map<String,Object> mapvalue){
|
|
public Map<String,Object> getInwardPriceBy(@RequestBody(required = false) Map<String,Object> mapvalue){
|
|
//接受结算是内转计重还是计时还是计数
|
|
//接受结算是内转计重还是计时还是计数
|
|
String settleMentType = (String) mapvalue.get("requirementType");
|
|
String settleMentType = (String) mapvalue.get("requirementType");
|
|
|
|
+ String insertUpdateRemark = (String) mapvalue.get("insertUpdateRemark");
|
|
BigDecimal type = null;
|
|
BigDecimal type = null;
|
|
if("计重".equals(settleMentType)){
|
|
if("计重".equals(settleMentType)){
|
|
- //在单价表里内转计重是2
|
|
|
|
- type = new BigDecimal(2);
|
|
|
|
|
|
+ if(insertUpdateRemark!=null && !"".equals(insertUpdateRemark) && insertUpdateRemark.contains("计时且过计量")){
|
|
|
|
+ //计重且计时,走计时流程
|
|
|
|
+ type = new BigDecimal(5);
|
|
|
|
+ }else{
|
|
|
|
+ //在单价表里内转计重是2
|
|
|
|
+ type = new BigDecimal(2);
|
|
|
|
+ }
|
|
}else if("计时".equals(settleMentType)){
|
|
}else if("计时".equals(settleMentType)){
|
|
//在单价表里内转计时是5
|
|
//在单价表里内转计时是5
|
|
type = new BigDecimal(5);
|
|
type = new BigDecimal(5);
|