md
This commit is contained in:
parent
fe4eaeb141
commit
2a867c4a0d
@ -148,6 +148,9 @@ public interface EmisWaybillMapper extends BaseMapper<EmisWaybill>
|
|||||||
// 更新问题件状态
|
// 更新问题件状态
|
||||||
public int updateProblemStatus(EmisWaybill emisWaybill);
|
public int updateProblemStatus(EmisWaybill emisWaybill);
|
||||||
|
|
||||||
|
// 取消问题件登记
|
||||||
|
public int cancelProblemRegister(EmisWaybill emisWaybill);
|
||||||
|
|
||||||
// 更新上一站,下一站
|
// 更新上一站,下一站
|
||||||
public int updatePreOrNextSiteByBillCode(EmisWaybill emisWaybill);
|
public int updatePreOrNextSiteByBillCode(EmisWaybill emisWaybill);
|
||||||
|
|
||||||
|
|||||||
@ -14,6 +14,7 @@ import java.util.*;
|
|||||||
|
|
||||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||||
import com.xdadan.erp.common.utils.DateUtils;
|
import com.xdadan.erp.common.utils.DateUtils;
|
||||||
|
import com.xdadan.erp.emis.domain.EmisWaybill;
|
||||||
import com.xdadan.erp.emis.domain.enumtype.EmisBizErrorType;
|
import com.xdadan.erp.emis.domain.enumtype.EmisBizErrorType;
|
||||||
import com.xdadan.erp.emis.domain.enumtype.ScanType;
|
import com.xdadan.erp.emis.domain.enumtype.ScanType;
|
||||||
import com.xdadan.erp.emis.domain.exception.EmisBizError;
|
import com.xdadan.erp.emis.domain.exception.EmisBizError;
|
||||||
@ -125,6 +126,11 @@ public class EmisWaybillProblemInfoServiceImpl extends EmisBaseService implement
|
|||||||
// 删除问题件
|
// 删除问题件
|
||||||
emisWaybillProblemInfoMapper.deleteEmisWaybillProblemInfoById(id);
|
emisWaybillProblemInfoMapper.deleteEmisWaybillProblemInfoById(id);
|
||||||
|
|
||||||
|
// 删除运单的问题件记录
|
||||||
|
EmisWaybill emisWaybill = new EmisWaybill();
|
||||||
|
emisWaybill.setBillCode(emisWaybillProblemInfo.getMainBillCode());
|
||||||
|
emisWaybillMapper.cancelProblemRegister(emisWaybill);
|
||||||
|
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|||||||
@ -387,11 +387,11 @@
|
|||||||
</update>
|
</update>
|
||||||
|
|
||||||
<delete id="deleteEmisSettleBillById" parameterType="Long">
|
<delete id="deleteEmisSettleBillById" parameterType="Long">
|
||||||
update emis_settle_bill set del_flag='0' where id = #{id}
|
update emis_settle_bill set del_flag='1' where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteEmisSettleBillByIds" parameterType="String">
|
<delete id="deleteEmisSettleBillByIds" parameterType="String">
|
||||||
update emis_settle_bill set del_flag='0' where id in
|
update emis_settle_bill set del_flag='1' where id in
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|||||||
@ -614,8 +614,10 @@
|
|||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<!-- and rel_id = #{promId} -->
|
||||||
|
|
||||||
<delete id="deletePromScanRecord" parameterType="String">
|
<delete id="deletePromScanRecord" parameterType="String">
|
||||||
update emis_tms_scan_record set del_flag='1' where scan_type='-1' and rel_id = #{promId} and main_bill_code=#{billCode}
|
update emis_tms_scan_record set del_flag='1' where scan_type='-1' and main_bill_code=#{billCode}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteEmisTmsScanRecordById" parameterType="Long">
|
<delete id="deleteEmisTmsScanRecordById" parameterType="Long">
|
||||||
|
|||||||
@ -2386,6 +2386,20 @@
|
|||||||
where bill_code=#{billCode}
|
where bill_code=#{billCode}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<!-- 取消问题件登记 -->
|
||||||
|
<update id="cancelProblemRegister" parameterType="EmisWaybill">
|
||||||
|
update emis_waybill
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
bl_is_question = '0',
|
||||||
|
problem_type = null,
|
||||||
|
problem_cause = null,
|
||||||
|
problem_delay_days = null
|
||||||
|
<if test="updateBy != null and updateBy != ''">,update_by = #{updateBy}</if>
|
||||||
|
<if test="updateSite != null and updateSite != ''">,update_site = #{updateSite}</if>
|
||||||
|
</trim>
|
||||||
|
where bill_code=#{billCode}
|
||||||
|
</update>
|
||||||
|
|
||||||
<update id="updateTransferInfo" parameterType="EmisWaybill">
|
<update id="updateTransferInfo" parameterType="EmisWaybill">
|
||||||
update emis_waybill
|
update emis_waybill
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user