入库字段增补,逻辑修改
This commit is contained in:
@@ -25,6 +25,7 @@ import java.util.List;
|
|||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/wisdom/stock")
|
@RequestMapping("/wisdom/stock")
|
||||||
public class AppRkInfoController extends BaseController {
|
public class AppRkInfoController extends BaseController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IRkInfoService rkInfoService;
|
private IRkInfoService rkInfoService;
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,9 @@ public class RkInfo extends BaseEntity
|
|||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 模糊搜索关键字(项目号、项目描述、物料号、物料描述、供应商编码、供应商名称,订单编号) */
|
||||||
|
private String keyword;
|
||||||
|
|
||||||
/** 主键ID */
|
/** 主键ID */
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@@ -137,6 +140,14 @@ public class RkInfo extends BaseEntity
|
|||||||
@Excel(name = "是否删除", readConverterExp = "0=,表=示正常,1,表=示已删除")
|
@Excel(name = "是否删除", readConverterExp = "0=,表=示正常,1,表=示已删除")
|
||||||
private String isDelete;
|
private String isDelete;
|
||||||
|
|
||||||
|
public String getKeyword() {
|
||||||
|
return keyword;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKeyword(String keyword) {
|
||||||
|
this.keyword = keyword;
|
||||||
|
}
|
||||||
|
|
||||||
public void setId(Long id)
|
public void setId(Long id)
|
||||||
{
|
{
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ public class PcRkInfoItemDTO {
|
|||||||
/** 本地物料号 */
|
/** 本地物料号 */
|
||||||
private String wlNo;
|
private String wlNo;
|
||||||
|
|
||||||
|
/** 本地物料描述 */
|
||||||
|
private String wlMs;
|
||||||
|
|
||||||
/** 项目描述 */
|
/** 项目描述 */
|
||||||
private String xmMs;
|
private String xmMs;
|
||||||
|
|
||||||
@@ -96,6 +99,14 @@ public class PcRkInfoItemDTO {
|
|||||||
this.wlNo = wlNo;
|
this.wlNo = wlNo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getWlMs() {
|
||||||
|
return wlMs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWlMs(String wlMs) {
|
||||||
|
this.wlMs = wlMs;
|
||||||
|
}
|
||||||
|
|
||||||
public String getXmMs() {
|
public String getXmMs() {
|
||||||
return xmMs;
|
return xmMs;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ public class RkInfoServiceImpl implements IRkInfoService
|
|||||||
entity.setHtDj(item.getHtDj());
|
entity.setHtDj(item.getHtDj());
|
||||||
entity.setDw(item.getDw());
|
entity.setDw(item.getDw());
|
||||||
entity.setWlNo(item.getWlNo());
|
entity.setWlNo(item.getWlNo());
|
||||||
// entity.setWlMs(item.getWlMs());
|
entity.setWlMs(item.getWlMs());
|
||||||
entity.setGysNo(item.getGysNo());
|
entity.setGysNo(item.getGysNo());
|
||||||
entity.setGysMc(item.getGysMc());
|
entity.setGysMc(item.getGysMc());
|
||||||
|
|
||||||
|
|||||||
@@ -82,12 +82,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectRkInfoList" parameterType="RkInfo" resultMap="RkInfoResult">
|
<select id="selectRkInfoList" parameterType="RkInfo" resultMap="RkInfoResult">
|
||||||
<include refid="selectRkInfoVo"/>
|
<include refid="selectRkInfoVo"/>
|
||||||
<where>
|
<where>
|
||||||
|
|
||||||
|
and is_chuku = 0
|
||||||
|
|
||||||
|
<if test="keyword != null and keyword != ''">
|
||||||
|
and (
|
||||||
|
xm_no like concat('%', #{keyword}, '%')
|
||||||
|
or xm_ms like concat('%', #{keyword}, '%')
|
||||||
|
or wl_no like concat('%', #{keyword}, '%')
|
||||||
|
or wl_ms like concat('%', #{keyword}, '%')
|
||||||
|
or gys_no like concat('%', #{keyword}, '%')
|
||||||
|
or gys_mc like concat('%', #{keyword}, '%')
|
||||||
|
or sap_no like concat('%', #{keyword}, '%')
|
||||||
|
)
|
||||||
|
</if>
|
||||||
|
|
||||||
<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="rkTime != null "> and rk_time = #{rkTime}</if>
|
<if test="rkTime != null "> and rk_time = #{rkTime}</if>
|
||||||
<if test="lihuoY != null and lihuoY != ''"> and lihuo_y = #{lihuoY}</if>
|
<if test="lihuoY != null and lihuoY != ''"> and lihuo_y = #{lihuoY}</if>
|
||||||
<if test="isChuku != null and isChuku != ''"> and is_chuku = #{isChuku}</if>
|
<!-- ✅ 删除这个条件,否则会与强制条件冲突 -->
|
||||||
|
<!-- <if test="isChuku != null and isChuku != ''"> and is_chuku = #{isChuku}</if> -->
|
||||||
|
|
||||||
<if test="xj != null and xj != ''"> and xj = #{xj}</if>
|
<if test="xj != null and xj != ''"> and xj = #{xj}</if>
|
||||||
<if test="xmNo != null and xmNo != ''"> and xm_no = #{xmNo}</if>
|
<if test="xmNo != null and xmNo != ''"> and xm_no = #{xmNo}</if>
|
||||||
<if test="xmMs != null and xmMs != ''"> and xm_ms = #{xmMs}</if>
|
<if test="xmMs != null and xmMs != ''"> and xm_ms = #{xmMs}</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user