第三方出库明细
parent
1551cd46e2
commit
778258acec
@ -1,205 +0,0 @@
|
||||
package com.glxp.api.entity.thrsys;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
@ApiModel(value="com-glxp-api-entity-thrsys-ThrInvOrderDetail")
|
||||
@Data
|
||||
@TableName(value = "thr_inv_order_detail")
|
||||
public class ThrInvOrderDetailEntity implements Serializable {
|
||||
@TableId(value = "id", type = IdType.INPUT)
|
||||
@ApiModelProperty(value="")
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 单据号
|
||||
*/
|
||||
@TableField(value = "orderIdFk")
|
||||
@ApiModelProperty(value="单据号")
|
||||
private String orderIdFk;
|
||||
|
||||
/**
|
||||
* 产品通用名称
|
||||
*/
|
||||
@TableField(value = "cpmctymc")
|
||||
@ApiModelProperty(value="产品通用名称")
|
||||
private String cpmctymc;
|
||||
|
||||
/**
|
||||
* 物资字典主键
|
||||
*/
|
||||
@TableField(value = "relId")
|
||||
@ApiModelProperty(value="物资字典主键")
|
||||
private Integer relId;
|
||||
|
||||
/**
|
||||
* 第三方项目编码/耗材字典
|
||||
*/
|
||||
@TableField(value = "thrCode")
|
||||
@ApiModelProperty(value="第三方项目编码/耗材字典")
|
||||
private String thrCode;
|
||||
|
||||
/**
|
||||
* DI
|
||||
*/
|
||||
@TableField(value = "nameCode")
|
||||
@ApiModelProperty(value="DI")
|
||||
private String nameCode;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
@TableField(value = "ggxh")
|
||||
@ApiModelProperty(value="规格型号")
|
||||
private String ggxh;
|
||||
|
||||
/**
|
||||
* 批次号
|
||||
*/
|
||||
@TableField(value = "batchNo")
|
||||
@ApiModelProperty(value="批次号")
|
||||
private Integer batchNo;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
@TableField(value = "measname")
|
||||
@ApiModelProperty(value="计量单位")
|
||||
private String measname;
|
||||
|
||||
/**
|
||||
* 价格
|
||||
*/
|
||||
@TableField(value = "price")
|
||||
@ApiModelProperty(value="价格")
|
||||
private BigDecimal price;
|
||||
|
||||
/**
|
||||
* 生产日期
|
||||
*/
|
||||
@TableField(value = "productionDate")
|
||||
@ApiModelProperty(value="生产日期")
|
||||
private Date productionDate;
|
||||
|
||||
/**
|
||||
* 失效日期
|
||||
*/
|
||||
@TableField(value = "expireDate")
|
||||
@ApiModelProperty(value="失效日期")
|
||||
private Date expireDate;
|
||||
|
||||
/**
|
||||
* 医疗器械注册备案人
|
||||
*/
|
||||
@TableField(value = "ylqxzcrbarmc")
|
||||
@ApiModelProperty(value="医疗器械注册备案人")
|
||||
private String ylqxzcrbarmc;
|
||||
|
||||
/**
|
||||
* 注册/备案号
|
||||
*/
|
||||
@TableField(value = "zczbhhzbapzbh")
|
||||
@ApiModelProperty(value="注册/备案号")
|
||||
private String zczbhhzbapzbh;
|
||||
|
||||
/**
|
||||
* 入库数量
|
||||
*/
|
||||
@TableField(value = "inCount")
|
||||
@ApiModelProperty(value="入库数量")
|
||||
private String inCount;
|
||||
|
||||
/**
|
||||
* 出库数量
|
||||
*/
|
||||
@TableField(value = "outCount")
|
||||
@ApiModelProperty(value="出库数量")
|
||||
private String outCount;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
@TableField(value = "supName")
|
||||
@ApiModelProperty(value="供应商")
|
||||
private String supName;
|
||||
|
||||
/**
|
||||
* 部门
|
||||
*/
|
||||
@TableField(value = "deptName")
|
||||
@ApiModelProperty(value="部门")
|
||||
private String deptName;
|
||||
|
||||
/**
|
||||
* 部门编码
|
||||
*/
|
||||
@TableField(value = "deptCode")
|
||||
@ApiModelProperty(value="部门编码")
|
||||
private String deptCode;
|
||||
|
||||
/**
|
||||
* 仓库
|
||||
*/
|
||||
@TableField(value = "invName")
|
||||
@ApiModelProperty(value="仓库")
|
||||
private String invName;
|
||||
|
||||
/**
|
||||
* 仓库编码
|
||||
*/
|
||||
@TableField(value = "invCode")
|
||||
@ApiModelProperty(value="仓库编码")
|
||||
private String invCode;
|
||||
|
||||
/**
|
||||
* 货位
|
||||
*/
|
||||
@TableField(value = "spaceCode")
|
||||
@ApiModelProperty(value="货位")
|
||||
private String spaceCode;
|
||||
|
||||
/**
|
||||
* 货位编码
|
||||
*/
|
||||
@TableField(value = "spaceName")
|
||||
@ApiModelProperty(value="货位编码")
|
||||
private String spaceName;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
@TableField(value = "reCount")
|
||||
@ApiModelProperty(value="实际数量")
|
||||
private String reCount;
|
||||
|
||||
/**
|
||||
* 出入库类型
|
||||
*/
|
||||
@TableField(value = "mainAction")
|
||||
@ApiModelProperty(value="出入库类型")
|
||||
private String mainAction;
|
||||
|
||||
/**
|
||||
* 生产企业
|
||||
*/
|
||||
@TableField(value = "manufacturer")
|
||||
@ApiModelProperty(value="生产企业")
|
||||
private String manufacturer;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField(value = "remark")
|
||||
@ApiModelProperty(value="备注")
|
||||
private String remark;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -1,132 +0,0 @@
|
||||
package com.glxp.api.entity.thrsys;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 库存出入库明细
|
||||
*/
|
||||
@ApiModel(value = "com-glxp-api-entity-thrsys-ThrInvOrder")
|
||||
@Data
|
||||
@TableName(value = "thr_inv_order")
|
||||
public class ThrInvOrderEntity implements Serializable {
|
||||
@TableId(value = "id", type = IdType.INPUT)
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 单据号
|
||||
*/
|
||||
@TableField(value = "billNo")
|
||||
@ApiModelProperty(value = "单据号")
|
||||
private String billNo;
|
||||
|
||||
/**
|
||||
* 单据时间
|
||||
*/
|
||||
@TableField(value = "billDate")
|
||||
@ApiModelProperty(value = "单据时间")
|
||||
private Date billDate;
|
||||
|
||||
/**
|
||||
* 库存开始时间
|
||||
*/
|
||||
@TableField(value = "startDate")
|
||||
@ApiModelProperty(value = "库存开始时间")
|
||||
private Date startDate;
|
||||
|
||||
/**
|
||||
* 库存结束时间
|
||||
*/
|
||||
@TableField(value = "endDate")
|
||||
@ApiModelProperty(value = "库存结束时间")
|
||||
private Date endDate;
|
||||
|
||||
/**
|
||||
* 出入库类型
|
||||
*/
|
||||
@TableField(value = "mainAction")
|
||||
@ApiModelProperty(value = "出入库类型")
|
||||
private String mainAction;
|
||||
|
||||
/**
|
||||
* 第三方单据类型
|
||||
*/
|
||||
@TableField(value = "billType")
|
||||
@ApiModelProperty(value = "第三方单据类型")
|
||||
private String billType;
|
||||
|
||||
/**
|
||||
* 部门编码
|
||||
*/
|
||||
@TableField(value = "deptCode")
|
||||
@ApiModelProperty(value = "部门编码")
|
||||
private String deptCode;
|
||||
|
||||
/**
|
||||
* 仓库编码
|
||||
*/
|
||||
@TableField(value = "invCode")
|
||||
@ApiModelProperty(value = "仓库编码")
|
||||
private String invCode;
|
||||
|
||||
/**
|
||||
* 货位编码
|
||||
*/
|
||||
@TableField(value = "spaceCode")
|
||||
@ApiModelProperty(value = "货位编码")
|
||||
private String spaceCode;
|
||||
|
||||
/**
|
||||
* 单据状态
|
||||
*/
|
||||
@TableField(value = "`status`")
|
||||
@ApiModelProperty(value = "单据状态")
|
||||
private Byte status;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(value = "createTime")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@TableField(value = "`createUser`")
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(value = "updateTime")
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@TableField(value = "updateUser")
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateUser;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField(value = "remark")
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -1,302 +1,290 @@
|
||||
<?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">
|
||||
<mapper namespace="com.glxp.api.dao.thrsys.ThrInvOrderMapper">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.thrsys.ThrInvOrder">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table thr_inv_order-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="billNo" jdbcType="VARCHAR" property="billNo" />
|
||||
<result column="billDate" jdbcType="TIMESTAMP" property="billDate" />
|
||||
<result column="startDate" jdbcType="TIMESTAMP" property="startDate" />
|
||||
<result column="endDate" jdbcType="TIMESTAMP" property="endDate" />
|
||||
<result column="mainAction" jdbcType="VARCHAR" property="mainAction" />
|
||||
<result column="billType" jdbcType="VARCHAR" property="billType" />
|
||||
<result column="thirdSysFk" jdbcType="VARCHAR" property="thirdSysFk" />
|
||||
<result column="deptCode" jdbcType="VARCHAR" property="deptCode" />
|
||||
<result column="invCode" jdbcType="VARCHAR" property="invCode" />
|
||||
<result column="spaceCode" jdbcType="VARCHAR" property="spaceCode" />
|
||||
<result column="status" jdbcType="TINYINT" property="status" />
|
||||
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="createUser" jdbcType="VARCHAR" property="createUser" />
|
||||
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="updateUser" jdbcType="VARCHAR" property="updateUser" />
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||
<result column="sourceType" jdbcType="INTEGER" property="sourceType" />
|
||||
<result column="exMsg" jdbcType="VARCHAR" property="exMsg" />
|
||||
<result column="skProject" jdbcType="INTEGER" property="skProject" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, billNo, billDate, startDate, endDate, mainAction, billType,thirdSysFk, deptCode, invCode,
|
||||
spaceCode, `status`, createTime, `createUser`, updateTime, updateUser, remark,sourceType,exMsg,skProject
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--@mbg.generated-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from thr_inv_order
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--@mbg.generated-->
|
||||
delete from thr_inv_order
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.thrsys.ThrInvOrder" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into thr_inv_order (billNo, billDate, startDate,
|
||||
endDate, mainAction, billType,thirdSysFk,
|
||||
deptCode, invCode, spaceCode,
|
||||
`status`, createTime, `createUser`,
|
||||
updateTime, updateUser, remark,sourceType,exMsg,skProject
|
||||
)
|
||||
values (#{billNo,jdbcType=VARCHAR}, #{billDate,jdbcType=TIMESTAMP}, #{startDate,jdbcType=TIMESTAMP},
|
||||
#{endDate,jdbcType=TIMESTAMP}, #{mainAction,jdbcType=VARCHAR}, #{billType,jdbcType=VARCHAR},#{thirdSysFk,jdbcType=VARCHAR},
|
||||
#{deptCode,jdbcType=VARCHAR}, #{invCode,jdbcType=VARCHAR}, #{spaceCode,jdbcType=VARCHAR},
|
||||
#{status,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP}, #{createUser,jdbcType=VARCHAR},
|
||||
#{updateTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{sourceType,jdbcType=INTEGER}
|
||||
, #{exMsg,jdbcType=VARCHAR}, #{skProject,jdbcType=INTEGER}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.thrsys.ThrInvOrder" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into thr_inv_order
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="billNo != null">
|
||||
billNo,
|
||||
</if>
|
||||
<if test="billDate != null">
|
||||
billDate,
|
||||
</if>
|
||||
<if test="startDate != null">
|
||||
startDate,
|
||||
</if>
|
||||
<if test="endDate != null">
|
||||
endDate,
|
||||
</if>
|
||||
<if test="mainAction != null">
|
||||
mainAction,
|
||||
</if>
|
||||
<if test="billType != null">
|
||||
billType,
|
||||
</if>
|
||||
<if test="thirdSysFk != null">
|
||||
thirdSysFk,
|
||||
</if>
|
||||
<if test="deptCode != null">
|
||||
deptCode,
|
||||
</if>
|
||||
<if test="invCode != null">
|
||||
invCode,
|
||||
</if>
|
||||
<if test="spaceCode != null">
|
||||
spaceCode,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status`,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
createTime,
|
||||
</if>
|
||||
<if test="createUser != null">
|
||||
`createUser`,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
updateTime,
|
||||
</if>
|
||||
<if test="updateUser != null">
|
||||
updateUser,
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark,
|
||||
</if>
|
||||
<if test="sourceType != null">
|
||||
sourceType,
|
||||
</if>
|
||||
<if test="exMsg != null">
|
||||
exMsg,
|
||||
</if>
|
||||
<if test="skProject != null">
|
||||
skProject,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="billNo != null">
|
||||
#{billNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="billDate != null">
|
||||
#{billDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="startDate != null">
|
||||
#{startDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="endDate != null">
|
||||
#{endDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="mainAction != null">
|
||||
#{mainAction,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="billType != null">
|
||||
#{billType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="thirdSysFk != null">
|
||||
#{thirdSysFk,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deptCode != null">
|
||||
#{deptCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="invCode != null">
|
||||
#{invCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="spaceCode != null">
|
||||
#{spaceCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createUser != null">
|
||||
#{createUser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateUser != null">
|
||||
#{updateUser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
#{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="sourceType != null">
|
||||
#{sourceType,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="exMsg != null">
|
||||
#{exMsg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="skProject != null">
|
||||
#{skProject,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.api.entity.thrsys.ThrInvOrder">
|
||||
<!--@mbg.generated-->
|
||||
update thr_inv_order
|
||||
<set>
|
||||
<if test="billNo != null">
|
||||
billNo = #{billNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="billDate != null">
|
||||
billDate = #{billDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="startDate != null">
|
||||
startDate = #{startDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="endDate != null">
|
||||
endDate = #{endDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="mainAction != null">
|
||||
mainAction = #{mainAction,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="billType != null">
|
||||
billType = #{billType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="thirdSysFk != null">
|
||||
thirdSysFk = #{thirdSysFk,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deptCode != null">
|
||||
deptCode = #{deptCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="invCode != null">
|
||||
invCode = #{invCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="spaceCode != null">
|
||||
spaceCode = #{spaceCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status` = #{status,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
createTime = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createUser != null">
|
||||
`createUser` = #{createUser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateUser != null">
|
||||
updateUser = #{updateUser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="sourceType != null">
|
||||
sourceType = #{sourceType,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="exMsg != null">
|
||||
exMsg = #{exMsg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="skProject != null">
|
||||
skProject = #{skProject,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.glxp.api.entity.thrsys.ThrInvOrder">
|
||||
<!--@mbg.generated-->
|
||||
update thr_inv_order
|
||||
set billNo = #{billNo,jdbcType=VARCHAR},
|
||||
billDate = #{billDate,jdbcType=TIMESTAMP},
|
||||
startDate = #{startDate,jdbcType=TIMESTAMP},
|
||||
endDate = #{endDate,jdbcType=TIMESTAMP},
|
||||
mainAction = #{mainAction,jdbcType=VARCHAR},
|
||||
billType = #{billType,jdbcType=VARCHAR},
|
||||
thirdSysFk = #{thirdSysFk,jdbcType=VARCHAR},
|
||||
deptCode = #{deptCode,jdbcType=VARCHAR},
|
||||
invCode = #{invCode,jdbcType=VARCHAR},
|
||||
spaceCode = #{spaceCode,jdbcType=VARCHAR},
|
||||
`status` = #{status,jdbcType=TINYINT},
|
||||
createTime = #{createTime,jdbcType=TIMESTAMP},
|
||||
`createUser` = #{createUser,jdbcType=VARCHAR},
|
||||
updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
||||
updateUser = #{updateUser,jdbcType=VARCHAR},
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
sourceType = #{sourceType,jdbcType=INTEGER},
|
||||
exMsg = #{exMsg,jdbcType=VARCHAR},
|
||||
skProject = #{skProject,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.thrsys.ThrInvOrder">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table thr_inv_order-->
|
||||
<id column="id" jdbcType="INTEGER" property="id"/>
|
||||
<result column="billNo" jdbcType="VARCHAR" property="billNo"/>
|
||||
<result column="billDate" jdbcType="TIMESTAMP" property="billDate"/>
|
||||
<result column="startDate" jdbcType="TIMESTAMP" property="startDate"/>
|
||||
<result column="endDate" jdbcType="TIMESTAMP" property="endDate"/>
|
||||
<result column="mainAction" jdbcType="VARCHAR" property="mainAction"/>
|
||||
<result column="billType" jdbcType="VARCHAR" property="billType"/>
|
||||
<result column="thirdSysFk" jdbcType="VARCHAR" property="thirdSysFk"/>
|
||||
<result column="deptCode" jdbcType="VARCHAR" property="deptCode"/>
|
||||
<result column="invCode" jdbcType="VARCHAR" property="invCode"/>
|
||||
<result column="spaceCode" jdbcType="VARCHAR" property="spaceCode"/>
|
||||
<result column="status" jdbcType="TINYINT" property="status"/>
|
||||
<result column="createTime" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="createUser" jdbcType="VARCHAR" property="createUser"/>
|
||||
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="updateUser" jdbcType="VARCHAR" property="updateUser"/>
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark"/>
|
||||
<result column="sourceType" jdbcType="INTEGER" property="sourceType"/>
|
||||
<result column="exMsg" jdbcType="VARCHAR" property="exMsg"/>
|
||||
<result column="skProject" jdbcType="INTEGER" property="skProject"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, billNo, billDate, startDate, endDate, mainAction, billType,thirdSysFk, deptCode, invCode,
|
||||
spaceCode, `status`, createTime, `createUser`, updateTime, updateUser, remark,sourceType,exMsg,skProject
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--@mbg.generated-->
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from thr_inv_order
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--@mbg.generated-->
|
||||
delete
|
||||
from thr_inv_order
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.thrsys.ThrInvOrder"
|
||||
useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into thr_inv_order
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="billNo != null">
|
||||
billNo,
|
||||
</if>
|
||||
<if test="billDate != null">
|
||||
billDate,
|
||||
</if>
|
||||
<if test="startDate != null">
|
||||
startDate,
|
||||
</if>
|
||||
<if test="endDate != null">
|
||||
endDate,
|
||||
</if>
|
||||
<if test="mainAction != null">
|
||||
mainAction,
|
||||
</if>
|
||||
<if test="billType != null">
|
||||
billType,
|
||||
</if>
|
||||
<if test="thirdSysFk != null">
|
||||
thirdSysFk,
|
||||
</if>
|
||||
<if test="deptCode != null">
|
||||
deptCode,
|
||||
</if>
|
||||
<if test="invCode != null">
|
||||
invCode,
|
||||
</if>
|
||||
<if test="spaceCode != null">
|
||||
spaceCode,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status`,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
createTime,
|
||||
</if>
|
||||
<if test="createUser != null">
|
||||
`createUser`,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
updateTime,
|
||||
</if>
|
||||
<if test="updateUser != null">
|
||||
updateUser,
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark,
|
||||
</if>
|
||||
<if test="sourceType != null">
|
||||
sourceType,
|
||||
</if>
|
||||
<if test="exMsg != null">
|
||||
exMsg,
|
||||
</if>
|
||||
<if test="skProject != null">
|
||||
skProject,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="billNo != null">
|
||||
#{billNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="billDate != null">
|
||||
#{billDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="startDate != null">
|
||||
#{startDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="endDate != null">
|
||||
#{endDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="mainAction != null">
|
||||
#{mainAction,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="billType != null">
|
||||
#{billType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="thirdSysFk != null">
|
||||
#{thirdSysFk,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deptCode != null">
|
||||
#{deptCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="invCode != null">
|
||||
#{invCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="spaceCode != null">
|
||||
#{spaceCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createUser != null">
|
||||
#{createUser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateUser != null">
|
||||
#{updateUser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
#{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="sourceType != null">
|
||||
#{sourceType,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="exMsg != null">
|
||||
#{exMsg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="skProject != null">
|
||||
#{skProject,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.api.entity.thrsys.ThrInvOrder">
|
||||
<!--@mbg.generated-->
|
||||
update thr_inv_order
|
||||
<set>
|
||||
<if test="billNo != null">
|
||||
billNo = #{billNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="billDate != null">
|
||||
billDate = #{billDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="startDate != null">
|
||||
startDate = #{startDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="endDate != null">
|
||||
endDate = #{endDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="mainAction != null">
|
||||
mainAction = #{mainAction,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="billType != null">
|
||||
billType = #{billType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="thirdSysFk != null">
|
||||
thirdSysFk = #{thirdSysFk,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="deptCode != null">
|
||||
deptCode = #{deptCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="invCode != null">
|
||||
invCode = #{invCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="spaceCode != null">
|
||||
spaceCode = #{spaceCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status` = #{status,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
createTime = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createUser != null">
|
||||
`createUser` = #{createUser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateUser != null">
|
||||
updateUser = #{updateUser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="sourceType != null">
|
||||
sourceType = #{sourceType,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="exMsg != null">
|
||||
exMsg = #{exMsg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="skProject != null">
|
||||
skProject = #{skProject,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.glxp.api.entity.thrsys.ThrInvOrder">
|
||||
<!--@mbg.generated-->
|
||||
update thr_inv_order
|
||||
set billNo = #{billNo,jdbcType=VARCHAR},
|
||||
billDate = #{billDate,jdbcType=TIMESTAMP},
|
||||
startDate = #{startDate,jdbcType=TIMESTAMP},
|
||||
endDate = #{endDate,jdbcType=TIMESTAMP},
|
||||
mainAction = #{mainAction,jdbcType=VARCHAR},
|
||||
billType = #{billType,jdbcType=VARCHAR},
|
||||
thirdSysFk = #{thirdSysFk,jdbcType=VARCHAR},
|
||||
deptCode = #{deptCode,jdbcType=VARCHAR},
|
||||
invCode = #{invCode,jdbcType=VARCHAR},
|
||||
spaceCode = #{spaceCode,jdbcType=VARCHAR},
|
||||
`status` = #{status,jdbcType=TINYINT},
|
||||
createTime = #{createTime,jdbcType=TIMESTAMP},
|
||||
`createUser` = #{createUser,jdbcType=VARCHAR},
|
||||
updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
||||
updateUser = #{updateUser,jdbcType=VARCHAR},
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
sourceType = #{sourceType,jdbcType=INTEGER},
|
||||
exMsg = #{exMsg,jdbcType=VARCHAR},
|
||||
skProject = #{skProject,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
<select id="filterThrInvOrder" parameterType="com.glxp.api.req.thrsys.FilterThrInvOrderRequest"
|
||||
resultType="com.glxp.api.entity.thrsys.ThrInvOrder">
|
||||
SELECT thr_inv_order.*
|
||||
FROM thr_inv_order
|
||||
<where>
|
||||
<if test="billNo != '' and billNo != null">
|
||||
AND billNo like concat('%', #{billNo}, '%')
|
||||
</if>
|
||||
<if test="billType != '' and billType != null">
|
||||
AND billType = #{billType}
|
||||
</if>
|
||||
<if test="thirdSysFk != '' and thirdSysFk != null">
|
||||
AND thirdSysFk = #{thirdSysFk}
|
||||
</if>
|
||||
<if test="startDate != null and startDate != ''">
|
||||
<![CDATA[
|
||||
<select id="filterThrInvOrder" parameterType="com.glxp.api.req.thrsys.FilterThrInvOrderRequest"
|
||||
resultType="com.glxp.api.res.thrsys.ThrInvOrderResponse">
|
||||
SELECT tio.*, bbt.name billTypeName, aw.name invName
|
||||
FROM thr_inv_order tio
|
||||
left join basic_bussiness_type bbt on tio.billType = bbt.action
|
||||
left join auth_warehouse aw on tio.invCode = aw.code
|
||||
<where>
|
||||
<if test="billNo != '' and billNo != null">
|
||||
AND billNo like concat('%', #{billNo}, '%')
|
||||
</if>
|
||||
<if test="billType != '' and billType != null">
|
||||
AND billType = #{billType}
|
||||
</if>
|
||||
<if test="thirdSysFk != '' and thirdSysFk != null">
|
||||
AND tio.thirdSysFk = #{thirdSysFk}
|
||||
</if>
|
||||
<if test="startDate != null and startDate != ''">
|
||||
<![CDATA[
|
||||
and DATE_FORMAT(billdate, '%Y-%m-%d') >= DATE_FORMAT(#{startDate}, '%Y-%m-%d')
|
||||
]]>
|
||||
</if>
|
||||
<if test="endDate != null and endDate != ''">
|
||||
<![CDATA[
|
||||
</if>
|
||||
<if test="endDate != null and endDate != ''">
|
||||
<![CDATA[
|
||||
and DATE_FORMAT(billdate, '%Y-%m-%d') <= DATE_FORMAT(#{endDate}, '%Y-%m-%d')
|
||||
]]>
|
||||
</if>
|
||||
<if test="sourceType != '' and sourceType != null">
|
||||
AND sourceType = #{sourceType}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY thr_inv_order.billdate DESC
|
||||
</select>
|
||||
</if>
|
||||
<if test="sourceType != '' and sourceType != null">
|
||||
AND sourceType = #{sourceType}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY tio.billdate DESC
|
||||
</select>
|
||||
</mapper>
|
||||
|
Loading…
Reference in New Issue