This commit is contained in:
linfso 2025-01-21 13:51:43 +08:00
parent ec4bf955db
commit 02e22c023d
5 changed files with 34 additions and 2 deletions

View File

@ -48,6 +48,19 @@ public class EmisWaybillOperLogController extends BaseController
@Autowired
private IEmisWaybillOperLogService emisWaybillOperLogService;
/**
* 获取操作记录
* @param billCode
* @return
*/
@GetMapping("/getWaybillOperLog")
public TableDataInfo getWaybillOperLog(String billCode)
{
List<EmisWaybillOperLog> list = emisWaybillOperLogService.selectListByMainBillCode(billCode);
return getDataTable(list);
}
/**
* 查询运单操作日志列表
*/

View File

@ -13,6 +13,8 @@ package com.xdadan.erp.emis.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xdadan.erp.emis.domain.EmisWaybillOperLog;
import org.apache.ibatis.annotations.Param;
/**
* @ClassName EmisWaybillOperLogMapper
* @Description <p> 运单操作日志 Mapper 接口 </p>
@ -37,6 +39,9 @@ public interface EmisWaybillOperLogMapper extends BaseMapper<EmisWaybillOperLog>
public List<EmisWaybillOperLog> selectEmisWaybillOperLogList(EmisWaybillOperLog emisWaybillOperLog);
public List<EmisWaybillOperLog> selectListByMainBillCode(@Param("mainBillCode") String mainBillCode);
/**
* 检查是否重复
*

View File

@ -35,6 +35,8 @@ public interface IEmisWaybillOperLogService
*/
public List<EmisWaybillOperLog> selectEmisWaybillOperLogList(EmisWaybillOperLog emisWaybillOperLog);
public List<EmisWaybillOperLog> selectListByMainBillCode(String mainBillCode);
/**
* 检查是否重复

View File

@ -54,6 +54,12 @@ public class EmisWaybillOperLogServiceImpl implements IEmisWaybillOperLogService
return emisWaybillOperLogMapper.selectEmisWaybillOperLogList(emisWaybillOperLog);
}
@Override
public List<EmisWaybillOperLog> selectListByMainBillCode(String mainBillCode)
{
return emisWaybillOperLogMapper.selectListByMainBillCode(mainBillCode);
}
/**
* 检查是否重复
*

View File

@ -24,14 +24,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select id, bill_code, order_sn, main_bill_code, bl_sub_bill, op_type, op_date, op_man_code, op_man, op_site_code, op_site_name, op_desc, data_from, del_flag, remark, create_by, create_time, update_by, update_time, update_site, create_site from emis_waybill_oper_log
</sql>
<select id="selectListByMainBillCode" parameterType="String" resultMap="EmisWaybillOperLogResult">
select id, bill_code, order_sn, main_bill_code, bl_sub_bill, op_type, op_date, op_man_code, op_man, op_site_code, op_site_name, op_desc, data_from, del_flag, remark, create_by, create_time, update_by, update_time, update_site, create_site
from emis_waybill_oper_log
where del_flag='0' and main_bill_code=#{mainBillCode}
</select>
<select id="selectEmisWaybillOperLogList" parameterType="EmisWaybillOperLog" resultMap="EmisWaybillOperLogResult">
<include refid="selectEmisWaybillOperLogVo"/>
<where>
del_flag='0'
<if test="id != null "> and id = #{id}</if>
<if test="billCode != null and billCode != ''"> and bill_code like concat('%', #{billCode}, '%')</if>
<if test="billCode != null and billCode != ''"> and bill_code=#{billCode}</if>
<if test="orderSn != null and orderSn != ''"> and order_sn like concat('%', #{orderSn}, '%')</if>
<if test="mainBillCode != null and mainBillCode != ''"> and main_bill_code like concat('%', #{mainBillCode}, '%')</if>
<if test="mainBillCode != null and mainBillCode != ''"> and main_bill_code=#{mainBillCode}</if>
<if test="blSubBill != null and blSubBill != ''"> and bl_sub_bill like concat('%', #{blSubBill}, '%')</if>
<if test="opType != null and opType != ''"> and op_type like concat('%', #{opType}, '%')</if>
<if test="opDate != null "> and op_date = #{opDate}</if>