This commit is contained in:
linfso 2024-08-31 07:08:09 +08:00
parent ce51fbd25d
commit b2216ec97b
3 changed files with 3 additions and 58 deletions

View File

@ -21,30 +21,12 @@ import com.xdadan.erp.oms.domain.EmisWarehouseIn;
*/
public interface EmisWarehouseInMapper extends BaseMapper<EmisWarehouseIn>
{
/**
* 主键查询
* @param id
* @return
*/
public EmisWarehouseIn selectEmisWarehouseInById(Long id);
/**
* 查询列表
*
* @param emisWarehouseIn
* @return 集合
* 确认进仓单
* @param emisWarehouseIn
* @return
*/
public List<EmisWarehouseIn> selectEmisWarehouseInList(EmisWarehouseIn emisWarehouseIn);
/**
* 修改
*
* @param emisWarehouseIn
* @return
*/
public int updateEmisWarehouseIn(EmisWarehouseIn emisWarehouseIn);
public int cusConfirmWsIn(EmisWarehouseIn emisWarehouseIn);

View File

@ -20,7 +20,6 @@ import com.xdadan.erp.oms.domain.EmisWarehouseIn;
public interface IEmisWarehouseInService
{
/**
* 确认进仓单
*

View File

@ -24,42 +24,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select id, serial_no, in_no, order_sn, bill_code, customer_code, customer_name, entry_date, confirm_status, confirm_date, used_status, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_warehouse_in
</sql>
<select id="selectEmisWarehouseInList" parameterType="EmisWarehouseIn" resultMap="EmisWarehouseInResult">
<include refid="selectEmisWarehouseInVo"/>
<where>
del_flag='0'
<if test="id != null "> and id = #{id}</if>
<if test="serialNo != null and serialNo != ''"> and serial_no like concat('%', #{serialNo}, '%')</if>
<if test="inNo != null and inNo != ''"> and in_no like concat('%', #{inNo}, '%')</if>
<if test="orderSn != null and orderSn != ''"> and order_sn like concat('%', #{orderSn}, '%')</if>
<if test="billCode != null and billCode != ''"> and bill_code like concat('%', #{billCode}, '%')</if>
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%', #{customerCode}, '%')</if>
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
<if test="entryDate != null "> and entry_date = #{entryDate}</if>
<if test="confirmStatus != null and confirmStatus != ''"> and confirm_status like concat('%', #{confirmStatus}, '%')</if>
<if test="confirmDate != null "> and confirm_date = #{confirmDate}</if>
<if test="usedStatus != null and usedStatus != ''"> and used_status like concat('%', #{usedStatus}, '%')</if>
<if test="status != null and status != ''"> and status like concat('%', #{status}, '%')</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
<if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
</where>
order by create_time desc
</select>
<select id="selectEmisWarehouseInById" parameterType="Long" resultMap="EmisWarehouseInResult">
select id, serial_no, in_no, order_sn, bill_code, customer_code, customer_name, entry_date, confirm_status, confirm_date, used_status, status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_warehouse_in a
where a.id = #{id}
</select>
<update id="cusConfirmWsIn" parameterType="EmisWarehouseIn">
update emis_warehouse_in set confirm_status=#{confirmStatus},confirm_date=now()