增加状态范围

This commit is contained in:
liumingxiy 2024-11-13 14:56:36 +08:00
parent 16bc405273
commit f9d750c814
3 changed files with 2 additions and 5 deletions

View File

@ -98,7 +98,6 @@ public interface BaseKnifeMapper {
);
List<BaseKnife> selectScrapList(
@Param("knifeFineState") Integer knifeFineState,
@Param("isLocked") Integer isLocked
);

View File

@ -259,7 +259,7 @@ public class WmsOutPlanServiceImpl implements IWmsOutPlanService {
@Override
public int autoScrapOut(String username) {
// 获得全部可以报废物品
List<BaseKnife> baseKnifeList = this.baseKnifeMapper.selectScrapList(0, 0);
List<BaseKnife> baseKnifeList = this.baseKnifeMapper.selectScrapList(0);
// 校验是否存在可报废物品
if (baseKnifeList.isEmpty()) {

View File

@ -575,14 +575,12 @@
<select id="selectScrapList" resultMap="BaseKnifeResult">
<include refid="selectBaseKnifeVo"/>
<where>
<if test="knifeFineState != null">
and KNIFE_FINE_STATE = #{knifeFineState}
</if>
<if test="isLocked != null">
and IS_LOCKED = #{isLocked}
</if>
and RESET_COUNT = 0
and KNIFE_LIFE = 0
and (KNIFE_FINE_STATE = 0 OR KNIFE_FINE_STATE = 1)
</where>
</select>
</mapper>