This commit is contained in:
linfso 2024-05-22 05:47:01 +08:00
parent a45ed8df18
commit 73f879551a
2 changed files with 38 additions and 2 deletions

View File

@ -85,6 +85,9 @@ public class EmisBaseService {
@Autowired
protected EmisTmsScanRecordMapper emisTmsScanRecordMapper;
@Autowired
private EmisProblemTypeMapper emisProblemTypeMapper;
@Autowired
private EmisSiteMapper emisSiteMapper;
@ -365,7 +368,36 @@ public class EmisBaseService {
return emisWaybillMapper.updateEmisWaybillByBillCode(emisWaybill);
}
/**
* 获取问题件
* @param problemType
* @return
*/
public EmisProblemType getEmisProblemTypeByType(String problemType){
return emisProblemTypeMapper.selectEmisProblemTypeById(Long.valueOf(problemType))
}
/**
* 问题件改变运单的状态
* @param billCode
* @param problemType
* @param problemCause
* @return
*/
public int changeWaybillProblemInfo(String billCode,String problemType,String problemCause){
EmisWaybill emisWaybill = new EmisWaybill();
emisWaybill.setBlIsQuestion("1");
emisWaybill.setProblemType(problemType);
emisWaybill.setProblemCause(problemCause);
emisWaybill.setBillCode(billCode);
EmisProblemType emisProblemType = getEmisProblemTypeByType(problemType);
Integer problemDelayDays=emisProblemType.getDelayDay();
emisWaybill.setProblemDelayDays(problemDelayDays);
return emisWaybillMapper.updateEmisWaybillByBillCode(emisWaybill);
}
/**
* 改变运单状态

View File

@ -11,6 +11,8 @@
package com.xdadan.erp.emis.service.impl;
import java.util.List;
import com.xdadan.erp.emis.service.EmisBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xdadan.erp.emis.domain.EmisWaybillProblemInfo;
@ -24,7 +26,7 @@ import com.xdadan.erp.emis.service.IEmisWaybillProblemInfoService;
* @date 2024-03-01 08:55:01
*/
@Service
public class EmisWaybillProblemInfoServiceImpl implements IEmisWaybillProblemInfoService
public class EmisWaybillProblemInfoServiceImpl extends EmisBaseService implements IEmisWaybillProblemInfoService
{
@Autowired
private EmisWaybillProblemInfoMapper emisWaybillProblemInfoMapper;
@ -62,7 +64,8 @@ public class EmisWaybillProblemInfoServiceImpl implements IEmisWaybillProblemInf
@Override
public int insertEmisWaybillProblemInfo(EmisWaybillProblemInfo emisWaybillProblemInfo)
{
//
// 标记运单问题件
this.changeWaybillProblemInfo(emisWaybillProblemInfo.getBillCode(),emisWaybillProblemInfo.getProblemType(),emisWaybillProblemInfo.getProblemCause());
return emisWaybillProblemInfoMapper.insertEmisWaybillProblemInfo(emisWaybillProblemInfo);
}
@ -75,6 +78,7 @@ public class EmisWaybillProblemInfoServiceImpl implements IEmisWaybillProblemInf
@Override
public int updateEmisWaybillProblemInfo(EmisWaybillProblemInfo emisWaybillProblemInfo)
{
this.changeWaybillProblemInfo(emisWaybillProblemInfo.getBillCode(),emisWaybillProblemInfo.getProblemType(),emisWaybillProblemInfo.getProblemCause());
return emisWaybillProblemInfoMapper.updateEmisWaybillProblemInfo(emisWaybillProblemInfo);
}