md
This commit is contained in:
parent
409ec6fcf1
commit
57ec20a095
@ -37,6 +37,10 @@ public class EmisWaybillProblemInfo extends BaseEntity
|
|||||||
private Long id;
|
private Long id;
|
||||||
/* 运单号 */
|
/* 运单号 */
|
||||||
private String billCode;
|
private String billCode;
|
||||||
|
/* 主单号 */
|
||||||
|
private String mainBillCode;
|
||||||
|
/* 是否子单 1-是 0-否 */
|
||||||
|
private String blSubBill;
|
||||||
/* 问题类型id: 航班拉货 */
|
/* 问题类型id: 航班拉货 */
|
||||||
private Integer problemType;
|
private Integer problemType;
|
||||||
/* 问题件标题 */
|
/* 问题件标题 */
|
||||||
|
|||||||
@ -28,6 +28,14 @@ public interface EmisWaybillProblemInfoMapper extends BaseMapper<EmisWaybillProb
|
|||||||
*/
|
*/
|
||||||
public EmisWaybillProblemInfo selectEmisWaybillProblemInfoById(Long id);
|
public EmisWaybillProblemInfo selectEmisWaybillProblemInfoById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 检查是否重复
|
||||||
|
*
|
||||||
|
* @param emisWaybillProblemInfo
|
||||||
|
* @return 数量
|
||||||
|
*/
|
||||||
|
public int checkUnique(EmisWaybillProblemInfo emisWaybillProblemInfo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询列表
|
* 查询列表
|
||||||
*
|
*
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
<resultMap type="EmisWaybillProblemInfo" id="EmisWaybillProblemInfoResult" extends="com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult">
|
<resultMap type="EmisWaybillProblemInfo" id="EmisWaybillProblemInfoResult" extends="com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="billCode" column="bill_code" />
|
<result property="billCode" column="bill_code" />
|
||||||
|
<result property="mainBillCode" column="main_bill_code" />
|
||||||
|
<result property="blSubBill" column="bl_sub_bill" />
|
||||||
<result property="problemType" column="problem_type" />
|
<result property="problemType" column="problem_type" />
|
||||||
<result property="problemTitle" column="problem_title" />
|
<result property="problemTitle" column="problem_title" />
|
||||||
<result property="problemCause" column="problem_cause" />
|
<result property="problemCause" column="problem_cause" />
|
||||||
@ -41,7 +43,7 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectEmisWaybillProblemInfoVo">
|
<sql id="selectEmisWaybillProblemInfoVo">
|
||||||
select id, bill_code, problem_type, problem_title, problem_cause, send_site, send_site_code, register_man_code, register_man_dept, register_site_code, register_date, register_save_date, data_from, status, is_send_site_register, bl_reversion, reversion_str, reversion_man, reversion_man_code, reversion_site_code, reversion_date, bl_checkok, deal_result, bl_see, file_path, del_flag, create_by, create_time, update_by, update_time, remark, create_site, update_site from emis_waybill_problem_info
|
select id, bill_code, main_bill_code, bl_sub_bill, problem_type, problem_title, problem_cause, send_site, send_site_code, register_man_code, register_man_dept, register_site_code, register_date, register_save_date, data_from, status, is_send_site_register, bl_reversion, reversion_str, reversion_man, reversion_man_code, reversion_site_code, reversion_date, bl_checkok, deal_result, bl_see, file_path, del_flag, create_by, create_time, update_by, update_time, remark, create_site, update_site from emis_waybill_problem_info
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectEmisWaybillProblemInfoList" parameterType="EmisWaybillProblemInfo" resultMap="EmisWaybillProblemInfoResult">
|
<select id="selectEmisWaybillProblemInfoList" parameterType="EmisWaybillProblemInfo" resultMap="EmisWaybillProblemInfoResult">
|
||||||
@ -50,6 +52,8 @@
|
|||||||
del_flag='0'
|
del_flag='0'
|
||||||
<if test="id != null "> and id = #{id}</if>
|
<if test="id != null "> and id = #{id}</if>
|
||||||
<if test="billCode != null and billCode != ''"> and ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) </if>
|
<if test="billCode != null and billCode != ''"> and ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) </if>
|
||||||
|
<if test="mainBillCode != null and mainBillCode != ''"> and main_bill_code=#{mainBillCode}</if>
|
||||||
|
<if test="blSubBill != null and blSubBill != ''"> and bl_sub_bill=#{blSubBill}</if>
|
||||||
|
|
||||||
<if test="problemType != null and problemType != ''"> and FIND_IN_SET(problem_type,#{problemType})</if>
|
<if test="problemType != null and problemType != ''"> and FIND_IN_SET(problem_type,#{problemType})</if>
|
||||||
<if test="problemTitle != null and problemTitle != ''"> and problem_title like concat('%', #{problemTitle}, '%')</if>
|
<if test="problemTitle != null and problemTitle != ''"> and problem_title like concat('%', #{problemTitle}, '%')</if>
|
||||||
@ -114,8 +118,16 @@
|
|||||||
order by create_time desc
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="checkUnique" parameterType="EmisWaybillProblemInfo" resultType="int">
|
||||||
|
select count(1) from emis_waybill_problem_info
|
||||||
|
where del_flag='0'
|
||||||
|
and bill_code = #{billCode}
|
||||||
|
and problem_type = #{problemType}
|
||||||
|
limit 1
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="selectEmisWaybillProblemInfoById" parameterType="Long" resultMap="EmisWaybillProblemInfoResult">
|
<select id="selectEmisWaybillProblemInfoById" parameterType="Long" resultMap="EmisWaybillProblemInfoResult">
|
||||||
select id, bill_code, problem_type, problem_title, problem_cause, send_site, send_site_code, register_man_code, register_man_dept, register_site_code, register_date, register_save_date, data_from, status, is_send_site_register, bl_reversion, reversion_str, reversion_man, reversion_man_code, reversion_site_code, reversion_date, bl_checkok, deal_result, bl_see, file_path, del_flag, create_by, create_time, update_by, update_time, remark, create_site, update_site from emis_waybill_problem_info
|
select id, bill_code, main_bill_code, bl_sub_bill, problem_type, problem_title, problem_cause, send_site, send_site_code, register_man_code, register_man_dept, register_site_code, register_date, register_save_date, data_from, status, is_send_site_register, bl_reversion, reversion_str, reversion_man, reversion_man_code, reversion_site_code, reversion_date, bl_checkok, deal_result, bl_see, file_path, del_flag, create_by, create_time, update_by, update_time, remark, create_site, update_site
|
||||||
from emis_waybill_problem_info a
|
from emis_waybill_problem_info a
|
||||||
where a.id = #{id}
|
where a.id = #{id}
|
||||||
</select>
|
</select>
|
||||||
@ -125,6 +137,8 @@
|
|||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">id,</if>
|
<if test="id != null">id,</if>
|
||||||
<if test="billCode != null and billCode != ''">bill_code,</if>
|
<if test="billCode != null and billCode != ''">bill_code,</if>
|
||||||
|
<if test="mainBillCode != null and mainBillCode != ''">main_bill_code,</if>
|
||||||
|
<if test="blSubBill != null and blSubBill != ''">bl_sub_bill,</if>
|
||||||
<if test="problemType != null">problem_type,</if>
|
<if test="problemType != null">problem_type,</if>
|
||||||
<if test="problemTitle != null and problemTitle != ''">problem_title,</if>
|
<if test="problemTitle != null and problemTitle != ''">problem_title,</if>
|
||||||
<if test="problemCause != null and problemCause != ''">problem_cause,</if>
|
<if test="problemCause != null and problemCause != ''">problem_cause,</if>
|
||||||
@ -160,6 +174,8 @@
|
|||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">#{id},</if>
|
<if test="id != null">#{id},</if>
|
||||||
<if test="billCode != null and billCode != ''">#{billCode},</if>
|
<if test="billCode != null and billCode != ''">#{billCode},</if>
|
||||||
|
<if test="mainBillCode != null and mainBillCode != ''">#{mainBillCode},</if>
|
||||||
|
<if test="blSubBill != null and blSubBill != ''">#{blSubBill},</if>
|
||||||
<if test="problemType != null">#{problemType},</if>
|
<if test="problemType != null">#{problemType},</if>
|
||||||
<if test="problemTitle != null and problemTitle != ''">#{problemTitle},</if>
|
<if test="problemTitle != null and problemTitle != ''">#{problemTitle},</if>
|
||||||
<if test="problemCause != null and problemCause != ''">#{problemCause},</if>
|
<if test="problemCause != null and problemCause != ''">#{problemCause},</if>
|
||||||
@ -198,6 +214,8 @@
|
|||||||
update emis_waybill_problem_info
|
update emis_waybill_problem_info
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="billCode != null and billCode != ''">bill_code = #{billCode},</if>
|
<if test="billCode != null and billCode != ''">bill_code = #{billCode},</if>
|
||||||
|
<if test="mainBillCode != null and mainBillCode != ''">main_bill_code = #{mainBillCode},</if>
|
||||||
|
<if test="blSubBill != null and blSubBill != ''">bl_sub_bill = #{blSubBill},</if>
|
||||||
<if test="problemType != null">problem_type = #{problemType},</if>
|
<if test="problemType != null">problem_type = #{problemType},</if>
|
||||||
<if test="problemTitle != null and problemTitle != ''">problem_title = #{problemTitle},</if>
|
<if test="problemTitle != null and problemTitle != ''">problem_title = #{problemTitle},</if>
|
||||||
<if test="problemCause != null and problemCause != ''">problem_cause = #{problemCause},</if>
|
<if test="problemCause != null and problemCause != ''">problem_cause = #{problemCause},</if>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user