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