新增库存单据根据主键id查询接口
This commit is contained in:
@@ -2,6 +2,7 @@ package com.zg.project.wisdom.domain;
|
|||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
@@ -26,6 +27,9 @@ public class RkInfo extends BaseEntity
|
|||||||
/** 主键ID */
|
/** 主键ID */
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<Long> ids;
|
||||||
|
|
||||||
/** 供应计划ID(对应供应计划表主键) */
|
/** 供应计划ID(对应供应计划表主键) */
|
||||||
@Excel(name = "供应计划ID")
|
@Excel(name = "供应计划ID")
|
||||||
private Long gysJhId;
|
private Long gysJhId;
|
||||||
@@ -231,6 +235,13 @@ public class RkInfo extends BaseEntity
|
|||||||
public Long getId() { return id; }
|
public Long getId() { return id; }
|
||||||
public void setId(Long id) { this.id = id; }
|
public void setId(Long id) { this.id = id; }
|
||||||
|
|
||||||
|
public List<Long> getIds() {
|
||||||
|
return ids;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIds(List<Long> ids) {
|
||||||
|
this.ids = ids;
|
||||||
|
}
|
||||||
public Long getGysJhId() {
|
public Long getGysJhId() {
|
||||||
return gysJhId;
|
return gysJhId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -187,6 +187,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="rkType != null and rkType != ''"> and rk_type = #{rkType}</if>
|
<if test="rkType != null and rkType != ''"> and rk_type = #{rkType}</if>
|
||||||
<if test="wlType != null and wlType != ''"> and wl_type = #{wlType}</if>
|
<if test="wlType != null and wlType != ''"> and wl_type = #{wlType}</if>
|
||||||
<if test="cangku != null and cangku != ''"> and cangku = #{cangku}</if>
|
<if test="cangku != null and cangku != ''"> and cangku = #{cangku}</if>
|
||||||
|
<if test="ids != null and ids.size > 0">
|
||||||
|
AND ri.id IN
|
||||||
|
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
<if test="startTime != null">
|
<if test="startTime != null">
|
||||||
<![CDATA[ and rk_time >= #{startTime} ]]>
|
<![CDATA[ and rk_time >= #{startTime} ]]>
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user