This commit is contained in:
linfso 2024-05-22 05:06:27 +08:00
parent 5cb232295f
commit a45ed8df18
3 changed files with 42 additions and 33 deletions

View File

@ -94,6 +94,18 @@ public class EmisWaybillProblemInfoController extends BaseController
return toAjax(emisWaybillProblemInfoService.insertEmisWaybillProblemInfo(emisWaybillProblemInfo));
}
/**
*
* @param emisWaybillProblemInfo
* @return
*/
@Log(title = "登记问题件", businessType = BusinessType.INSERT)
@RequestMapping("/registerProblemInfo")
public AjaxResult registerProblemInfo(@RequestBody EmisWaybillProblemInfo emisWaybillProblemInfo)
{
return toAjax(emisWaybillProblemInfoService.insertEmisWaybillProblemInfo(emisWaybillProblemInfo));
}
/**
* 修改问题件
*/

View File

@ -1,10 +1,10 @@
/**
/**
* @Project: emis
* @Title: EmisWaybillProblemInfo.java
* @author linfso
* @date 2024-03-01 08:55:01
* @date 2024-05-21 21:00:49
* @Copyright: ShangHai Duta 2022 All rights reserved.
* @version v1.0
* @version v1.0
* @Description: <p> 问题件 实体类 </p>
*/
@ -26,9 +26,9 @@ import lombok.Data;
* @ClassName EmisWaybillProblemInfo
* @Description 问题件
* @author linfso
* @date 2024-03-01 08:55:01
* @date 2024-05-21 21:00:49
*/
@Data
@Data
public class EmisWaybillProblemInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
@ -43,9 +43,9 @@ public class EmisWaybillProblemInfo extends BaseEntity
private String problemTitle;
/* 问题件原因 */
private String problemCause;
/* 发送站点 */
/* 通知网点 */
private String sendSite;
/* 发送站点代码 */
/* 通知网点代码 */
private String sendSiteCode;
/* 登记人代码 */
private String registerManCode;
@ -80,9 +80,5 @@ public class EmisWaybillProblemInfo extends BaseEntity
private String blSee;
/* 文件路径 */
private String filePath;
/* 创建站点代码 */
private String createSiteCode;
/* 修改站点代码 */
private String modifySiteCode;
}

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xdadan.erp.emis.mapper.EmisWaybillProblemInfoMapper">
<resultMap type="EmisWaybillProblemInfo" id="EmisWaybillProblemInfoResult">
<result property="id" column="id" />
<result property="billCode" column="bill_code" />
@ -28,23 +28,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="blCheckok" column="bl_checkok" />
<result property="blSee" column="bl_see" />
<result property="filePath" column="file_path" />
<result property="createSiteCode" column="create_site_code" />
<result property="modifySiteCode" column="modify_site_code" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="createSite" column="create_site" />
<result property="updateSite" column="update_site" />
</resultMap>
<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_date, bl_checkok, bl_see, file_path, create_site_code, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark from emis_waybill_problem_info
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_date, bl_checkok, 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>
<select id="selectEmisWaybillProblemInfoList" parameterType="EmisWaybillProblemInfo" resultMap="EmisWaybillProblemInfoResult">
<include refid="selectEmisWaybillProblemInfoVo"/>
<where>
<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="problemType != null and problemType != ''"> and problem_type like concat('%', #{problemType}, '%')</if>
@ -68,25 +69,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="blCheckok != null and blCheckok != ''"> and bl_checkok like concat('%', #{blCheckok}, '%')</if>
<if test="blSee != null and blSee != ''"> and bl_see like concat('%', #{blSee}, '%')</if>
<if test="filePath != null and filePath != ''"> and file_path like concat('%', #{filePath}, '%')</if>
<if test="createSiteCode != null and createSiteCode != ''"> and create_site_code like concat('%', #{createSiteCode}, '%')</if>
<if test="modifySiteCode != null and modifySiteCode != ''"> and modify_site_code like concat('%', #{modifySiteCode}, '%')</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="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</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="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_date, bl_checkok, bl_see, file_path, create_site_code, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark
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_date, bl_checkok, 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
where a.id = #{id}
</select>
<insert id="insertEmisWaybillProblemInfo" parameterType="EmisWaybillProblemInfo">
<insert id="insertEmisWaybillProblemInfo" parameterType="EmisWaybillProblemInfo" useGeneratedKeys="true" keyProperty="id">
insert into emis_waybill_problem_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
@ -112,15 +113,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="blCheckok != null and blCheckok != ''">bl_checkok,</if>
<if test="blSee != null and blSee != ''">bl_see,</if>
<if test="filePath != null and filePath != ''">file_path,</if>
<if test="createSiteCode != null and createSiteCode != ''">create_site_code,</if>
<if test="modifySiteCode != null and modifySiteCode != ''">modify_site_code,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null and remark != ''">remark,</if>
</trim>
<if test="createSite != null and createSite != ''">create_site,</if>
<if test="updateSite != null and updateSite != ''">update_site,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="billCode != null and billCode != ''">#{billCode},</if>
@ -145,15 +146,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="blCheckok != null and blCheckok != ''">#{blCheckok},</if>
<if test="blSee != null and blSee != ''">#{blSee},</if>
<if test="filePath != null and filePath != ''">#{filePath},</if>
<if test="createSiteCode != null and createSiteCode != ''">#{createSiteCode},</if>
<if test="modifySiteCode != null and modifySiteCode != ''">#{modifySiteCode},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null and remark != ''">#{remark},</if>
</trim>
<if test="createSite != null and createSite != ''">#{createSite},</if>
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
</trim>
</insert>
<update id="updateEmisWaybillProblemInfo" parameterType="EmisWaybillProblemInfo">
@ -181,14 +182,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="blCheckok != null and blCheckok != ''">bl_checkok = #{blCheckok},</if>
<if test="blSee != null and blSee != ''">bl_see = #{blSee},</if>
<if test="filePath != null and filePath != ''">file_path = #{filePath},</if>
<if test="createSiteCode != null and createSiteCode != ''">create_site_code = #{createSiteCode},</if>
<if test="modifySiteCode != null and modifySiteCode != ''">modify_site_code = #{modifySiteCode},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
</trim>
where id = #{id}
</update>
@ -198,7 +199,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<delete id="deleteEmisWaybillProblemInfoByIds" parameterType="String">
delete from emis_waybill_problem_info where id in
delete from emis_waybill_problem_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>