md
This commit is contained in:
parent
a45ed8df18
commit
73f879551a
@ -85,6 +85,9 @@ public class EmisBaseService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
protected EmisTmsScanRecordMapper emisTmsScanRecordMapper;
|
protected EmisTmsScanRecordMapper emisTmsScanRecordMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EmisProblemTypeMapper emisProblemTypeMapper;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private EmisSiteMapper emisSiteMapper;
|
private EmisSiteMapper emisSiteMapper;
|
||||||
|
|
||||||
@ -365,7 +368,36 @@ public class EmisBaseService {
|
|||||||
return emisWaybillMapper.updateEmisWaybillByBillCode(emisWaybill);
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 改变运单状态
|
* 改变运单状态
|
||||||
|
|||||||
@ -11,6 +11,8 @@
|
|||||||
package com.xdadan.erp.emis.service.impl;
|
package com.xdadan.erp.emis.service.impl;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.xdadan.erp.emis.service.EmisBaseService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.xdadan.erp.emis.domain.EmisWaybillProblemInfo;
|
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
|
* @date 2024-03-01 08:55:01
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class EmisWaybillProblemInfoServiceImpl implements IEmisWaybillProblemInfoService
|
public class EmisWaybillProblemInfoServiceImpl extends EmisBaseService implements IEmisWaybillProblemInfoService
|
||||||
{
|
{
|
||||||
@Autowired
|
@Autowired
|
||||||
private EmisWaybillProblemInfoMapper emisWaybillProblemInfoMapper;
|
private EmisWaybillProblemInfoMapper emisWaybillProblemInfoMapper;
|
||||||
@ -62,7 +64,8 @@ public class EmisWaybillProblemInfoServiceImpl implements IEmisWaybillProblemInf
|
|||||||
@Override
|
@Override
|
||||||
public int insertEmisWaybillProblemInfo(EmisWaybillProblemInfo emisWaybillProblemInfo)
|
public int insertEmisWaybillProblemInfo(EmisWaybillProblemInfo emisWaybillProblemInfo)
|
||||||
{
|
{
|
||||||
//
|
// 标记运单问题件
|
||||||
|
this.changeWaybillProblemInfo(emisWaybillProblemInfo.getBillCode(),emisWaybillProblemInfo.getProblemType(),emisWaybillProblemInfo.getProblemCause());
|
||||||
return emisWaybillProblemInfoMapper.insertEmisWaybillProblemInfo(emisWaybillProblemInfo);
|
return emisWaybillProblemInfoMapper.insertEmisWaybillProblemInfo(emisWaybillProblemInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,6 +78,7 @@ public class EmisWaybillProblemInfoServiceImpl implements IEmisWaybillProblemInf
|
|||||||
@Override
|
@Override
|
||||||
public int updateEmisWaybillProblemInfo(EmisWaybillProblemInfo emisWaybillProblemInfo)
|
public int updateEmisWaybillProblemInfo(EmisWaybillProblemInfo emisWaybillProblemInfo)
|
||||||
{
|
{
|
||||||
|
this.changeWaybillProblemInfo(emisWaybillProblemInfo.getBillCode(),emisWaybillProblemInfo.getProblemType(),emisWaybillProblemInfo.getProblemCause());
|
||||||
return emisWaybillProblemInfoMapper.updateEmisWaybillProblemInfo(emisWaybillProblemInfo);
|
return emisWaybillProblemInfoMapper.updateEmisWaybillProblemInfo(emisWaybillProblemInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user