新增库存单据根据主键id查询接口

This commit is contained in:
2025-07-24 15:47:47 +08:00
parent b6ac89fffc
commit 428787f83f
2 changed files with 17 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ package com.zg.project.wisdom.domain;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
@@ -26,6 +27,9 @@ public class RkInfo extends BaseEntity
/** 主键ID */
private Long id;
@TableField(exist = false)
private List<Long> ids;
/** 供应计划ID对应供应计划表主键 */
@Excel(name = "供应计划ID")
private Long gysJhId;
@@ -231,6 +235,13 @@ public class RkInfo extends BaseEntity
public Long getId() { return 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() {
return gysJhId;
}

View File

@@ -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="wlType != null and wlType != ''"> and wl_type = #{wlType}</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">
<![CDATA[ and rk_time >= #{startTime} ]]>
</if>