1.调整预警信息相关代码

master
x_z 2 years ago
parent 599ccc6a28
commit 811f721067

@ -628,4 +628,19 @@ public class UdiRelevanceController {
//业务单据选入耗材字典查询列表 //业务单据选入耗材字典查询列表
/**
*
*
* @param relId
* @return
*/
@GetMapping("/udiwms/udiinfo/getGgxhList")
public BaseResponse getGgxhList(String relId) {
if (StrUtil.isBlank(relId)) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
}
List<String> ggxhList = udiProductService.getGgxhList(relId);
return ResultVOUtils.success(ggxhList);
}
} }

@ -60,4 +60,12 @@ public interface UdiProductDao {
* @return * @return
*/ */
Integer selectPackLevel(@Param("nameCode") String nameCode); Integer selectPackLevel(@Param("nameCode") String nameCode);
/**
*
*
* @param relId
* @return
*/
List<String> selectGgxhList(@Param("relId") String relId);
} }

@ -15,6 +15,11 @@ public class AddInvRemindSetRequest {
*/ */
private String relId; private String relId;
/**
*
*/
private String ggxh;
/** /**
* *
*/ */
@ -35,11 +40,6 @@ public class AddInvRemindSetRequest {
*/ */
private Boolean lowStock; private Boolean lowStock;
/**
*
*/
private Integer lowStockNum;
/** /**
* *
*/ */
@ -50,11 +50,6 @@ public class AddInvRemindSetRequest {
*/ */
private Boolean overStock; private Boolean overStock;
/**
*
*/
private Integer overStockNum;
/** /**
* *
*/ */
@ -65,11 +60,6 @@ public class AddInvRemindSetRequest {
*/ */
private Boolean recentDate; private Boolean recentDate;
/**
*
*/
private Integer recentDateDay;
/** /**
* *
*/ */

@ -19,6 +19,11 @@ public class FilterInvRemindMsgRequest extends ListPageRequest {
*/ */
private String batchNo; private String batchNo;
/**
*
*/
private String ggxh;
/** /**
* *
*/ */
@ -44,4 +49,9 @@ public class FilterInvRemindMsgRequest extends ListPageRequest {
*/ */
private String type; private String type;
/**
* 017215330
*/
private Integer ignoreStatus;
} }

@ -40,5 +40,11 @@ public interface UdiProductService {
boolean deleteByUuid(String uuid); boolean deleteByUuid(String uuid);
/**
*
*
* @param relId
* @return
*/
List<String> getGgxhList(String relId);
} }

@ -124,4 +124,9 @@ public class UdiProductServiceImpl implements UdiProductService {
public boolean deleteByUuid(String uuid) { public boolean deleteByUuid(String uuid) {
return udiProductDao.deleteByUuid(uuid); return udiProductDao.deleteByUuid(uuid);
} }
@Override
public List<String> getGgxhList(String relId) {
return udiProductDao.selectGgxhList(relId);
}
} }

@ -395,4 +395,11 @@
<select id="selectPackLevel" resultType="java.lang.Integer"> <select id="selectPackLevel" resultType="java.lang.Integer">
select packLevel from basic_products where nameCode = #{nameCode} limit 1 select packLevel from basic_products where nameCode = #{nameCode} limit 1
</select> </select>
<select id="selectGgxhList" resultType="java.lang.String">
select distinct ggxh
from basic_products
left join basic_udirel on basic_products.uuid = basic_udirel.uuid
where basic_udirel.id = #{relId}
</select>
</mapper> </mapper>

@ -283,10 +283,9 @@
AND ipd.invSpaceCode = #{invSpaceCode} AND ipd.invSpaceCode = #{invSpaceCode}
</if> </if>
</where> </where>
group by ip.relIdFk, bp.ggxh
</select> </select>
<select id="filterProductList" resultType="com.glxp.api.res.inv.InvProductResponse" <select id="filterProductList" resultType="com.glxp.api.res.inv.InvProductResponse"
parameterType="com.glxp.api.req.inv.FilterInvProductRequest"> parameterType="com.glxp.api.req.inv.FilterInvProductRequest">
select ip.id, select ip.id,

Loading…
Cancel
Save