md
This commit is contained in:
parent
7c3af961a2
commit
8a062516ed
@ -15,6 +15,7 @@ import java.util.List;
|
|||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import com.xdadan.erp.emis.domain.exception.EmisBizError;
|
import com.xdadan.erp.emis.domain.exception.EmisBizError;
|
||||||
|
import com.xdadan.erp.emis.service.IEmisSettleInvoiceChRecordService;
|
||||||
import com.xdadan.erp.emis.utils.WaybillHelper;
|
import com.xdadan.erp.emis.utils.WaybillHelper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.dao.DuplicateKeyException;
|
import org.springframework.dao.DuplicateKeyException;
|
||||||
@ -52,6 +53,9 @@ public class EmisSettleInvoiceRecordController extends BaseController
|
|||||||
@Autowired
|
@Autowired
|
||||||
private IEmisSettleInvoiceRecordService emisSettleInvoiceRecordService;
|
private IEmisSettleInvoiceRecordService emisSettleInvoiceRecordService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IEmisSettleInvoiceChRecordService emisSettleInvoiceChRecordService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询开票记录表列表
|
* 查询开票记录表列表
|
||||||
*/
|
*/
|
||||||
@ -184,8 +188,10 @@ public class EmisSettleInvoiceRecordController extends BaseController
|
|||||||
return AjaxResult.error("申请不存在");
|
return AjaxResult.error("申请不存在");
|
||||||
}
|
}
|
||||||
|
|
||||||
if("1".equals(old.getBlAudit())){
|
// 如果已发送航信开票则不允许操作
|
||||||
return AjaxResult.error("已审核通过,不可操作");
|
int isSend=emisSettleInvoiceChRecordService.checkHasSendToHx(old.getApplySeqNo());
|
||||||
|
if(isSend>0){
|
||||||
|
return AjaxResult.error("已发航信开票,不可操作");
|
||||||
}
|
}
|
||||||
|
|
||||||
if("2".equals(old.getBlAudit())){
|
if("2".equals(old.getBlAudit())){
|
||||||
|
|||||||
@ -13,6 +13,8 @@ package com.xdadan.erp.emis.mapper;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.xdadan.erp.emis.domain.EmisSettleInvoiceChRecord;
|
import com.xdadan.erp.emis.domain.EmisSettleInvoiceChRecord;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ClassName EmisSettleInvoiceChRecordMapper
|
* @ClassName EmisSettleInvoiceChRecordMapper
|
||||||
* @Description <p> 渠道开票记录表 Mapper 接口 </p>
|
* @Description <p> 渠道开票记录表 Mapper 接口 </p>
|
||||||
@ -47,6 +49,12 @@ public interface EmisSettleInvoiceChRecordMapper extends BaseMapper<EmisSettleIn
|
|||||||
public List<EmisSettleInvoiceChRecord> selectWaitQueryStatusList();
|
public List<EmisSettleInvoiceChRecord> selectWaitQueryStatusList();
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 检查是否发送航信
|
||||||
|
* @param applySeqNo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public int checkHasSendToHx(@Param("applySeqNo") String applySeqNo);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -58,6 +66,7 @@ public interface EmisSettleInvoiceChRecordMapper extends BaseMapper<EmisSettleIn
|
|||||||
public int checkUnique(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord);
|
public int checkUnique(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
*
|
*
|
||||||
|
|||||||
@ -36,6 +36,8 @@ public interface IEmisSettleInvoiceChRecordService
|
|||||||
*/
|
*/
|
||||||
public List<EmisSettleInvoiceChRecord> selectEmisSettleInvoiceChRecordList(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord);
|
public List<EmisSettleInvoiceChRecord> selectEmisSettleInvoiceChRecordList(EmisSettleInvoiceChRecord emisSettleInvoiceChRecord);
|
||||||
|
|
||||||
|
public int checkHasSendToHx(String applySeqNo);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检查是否重复
|
* 检查是否重复
|
||||||
|
|||||||
@ -85,6 +85,13 @@ public class EmisSettleInvoiceChRecordServiceImpl extends EmisBaseService implem
|
|||||||
return emisSettleInvoiceChRecordMapper.selectEmisSettleInvoiceChRecordList(emisSettleInvoiceChRecord);
|
return emisSettleInvoiceChRecordMapper.selectEmisSettleInvoiceChRecordList(emisSettleInvoiceChRecord);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int checkHasSendToHx(String applySeqNo)
|
||||||
|
{
|
||||||
|
return emisSettleInvoiceChRecordMapper.checkHasSendToHx(applySeqNo);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检查是否重复
|
* 检查是否重复
|
||||||
*
|
*
|
||||||
|
|||||||
@ -162,6 +162,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
order by create_time desc
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="checkHasSendToHx" parameterType="EmisSettleInvoiceChRecord" resultType="int">
|
||||||
|
select count(1) from emis_settle_invoice_ch_record
|
||||||
|
where del_flag='0'
|
||||||
|
and apply_seq_no = #{applySeqNo}
|
||||||
|
and open_ch_status != 0
|
||||||
|
limit 1
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="checkUnique" parameterType="EmisSettleInvoiceChRecord" resultType="int">
|
<select id="checkUnique" parameterType="EmisSettleInvoiceChRecord" resultType="int">
|
||||||
select count(1) from emis_settle_invoice_ch_record
|
select count(1) from emis_settle_invoice_ch_record
|
||||||
where del_flag='0'
|
where del_flag='0'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user