This commit is contained in:
linfso 2024-08-01 06:55:02 +08:00
parent 7b281cabb8
commit ada0aaf330
2 changed files with 32 additions and 22 deletions

View File

@ -610,24 +610,24 @@ public class EmisWaybillController extends EmisBaseController
} }
// @JacksonFilter(include= { @JacksonFilter(include= {
// "id","orderSn","billCode","orderStatus","waybillStatus", "id","orderSn","billCode","orderStatus","waybillStatus",
// "orderType","sendDate","customerCode","customerName", "orderType","sendDate","customerCode","customerName",
// "receiveName", "receiveName",
// "receiveCountry","receiveCountryName", "receiveCountry","receiveCountryName",
// "receiveProvince","receiveProvinceName", "receiveProvince","receiveProvinceName",
// "receiveCity", "receiveCityName", "receiveCity", "receiveCityName",
// "sendName", "sendName",
// "sendCountry","sendCountryName", "sendCountry","sendCountryName",
// "sendProvince","sendProvinceName", "sendProvince","sendProvinceName",
// "sendCity","sendCityName", "sendCity","sendCityName",
// "transLineType","transLineTypeName", "transLineType","transLineTypeName",
// "productType","productTypeName", "productType","productTypeName",
// "sendSiteName","destinationName", "sendSiteName","destinationName",
// "dispatchUnderlingSiteName", "dispatchUnderlingSiteName",
//
//
// },value= EmisWaybill.class,type= JacksonFilter.JscksonFilterType.RESPONSE) },value= EmisWaybill.class,type= JacksonFilter.JscksonFilterType.RESPONSE)
@GetMapping("/listSimple") @GetMapping("/listSimple")
public TableDataInfo listSimple(EmisWaybill emisWaybill) public TableDataInfo listSimple(EmisWaybill emisWaybill)
{ {
@ -636,6 +636,16 @@ public class EmisWaybillController extends EmisBaseController
// 设置通用权限查询参数 // 设置通用权限查询参数
setPrivParams(emisWaybill); setPrivParams(emisWaybill);
// 如果不带查询本人开单的数据
if(StringUtils.isEmpty(emisWaybill.getBillCode())){
try {
emisWaybill.setRegisterManCode(getLoginUser().getUser().getEmpCode());
}catch(Exception ex){
ex.printStackTrace();
}
}
if(!StringUtils.isEmpty(emisWaybill.getBillCode())){ if(!StringUtils.isEmpty(emisWaybill.getBillCode())){
String[] billCodeSortList = emisWaybill.getBillCode().split(","); String[] billCodeSortList = emisWaybill.getBillCode().split(",");
if(billCodeSortList.length>1){ if(billCodeSortList.length>1){

View File

@ -1027,7 +1027,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
emisWaybillSave.setId(oldEmisWaybill.getId()); emisWaybillSave.setId(oldEmisWaybill.getId());
// 公共计算部分 // 公共计算部分
calcWayBillCommonInfo(emisWaybillSave,true); calcWayBillCommonInfo(emisWaybillSave,oldEmisWaybill,true);
emisWaybillSave.preUpdate(); emisWaybillSave.preUpdate();
@ -1514,7 +1514,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
* @param isNew * @param isNew
* @throws EmisBizError * @throws EmisBizError
*/ */
private void calcWayBillCommonInfo(EmisWaybill emisWaybillSave,boolean isNew) throws EmisBizError { private void calcWayBillCommonInfo(EmisWaybill emisWaybillSave,EmisWaybill oldWaybil,boolean isNew) throws EmisBizError {
String orderSn = WaybillHelper.genOrderSn(); String orderSn = WaybillHelper.genOrderSn();
@ -2290,7 +2290,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
} }
// 公共计算部分 // 公共计算部分
calcWayBillCommonInfo(emisWaybillSave,true); calcWayBillCommonInfo(emisWaybillSave,null,true);
@ -2551,7 +2551,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
// 公共计算部分 // 公共计算部分
emisWaybillSave.setId(oldEmisWaybill.getId()); emisWaybillSave.setId(oldEmisWaybill.getId());
calcWayBillCommonInfo(emisWaybillSave,false); calcWayBillCommonInfo(emisWaybillSave,oldEmisWaybill,false);
emisWaybillSave.preUpdate(); emisWaybillSave.preUpdate();