修改bug

master
wangwei 2 years ago
parent 77d6825ab1
commit 4c5cd99deb

@ -204,18 +204,18 @@ public class BasicBussinessTypeServiceImpl implements IBasicBussinessTypeService
case Constant.ORDER_ACTION_PRE_DETAIL:
bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>()
.eq("actionType", 3).eq("inStock", true));
.eq("actionType", 3).eq("inStock", true).eq("enable",true));
break;
case Constant.ORDER_ACTION_SUP_DELIVERY:
bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>()
.eq("mainAction", ConstantType.TYPE_PUT).eq("corpType", ConstantStatus.CORP_TYPE_OUT)
.eq("spUse", true).eq("inStock", false));
.eq("spUse", true).eq("inStock", false).eq("enable",true));
break;
case Constant.ORDER_ACTION_SUP_INVOICE:
bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>()
.eq("mainAction", ConstantType.TYPE_PUT).eq("corpType", ConstantStatus.CORP_TYPE_OUT)
.eq("spUse", true).eq("actionType", 1));
.eq("spUse", true).eq("actionType", 1).eq("enable",true));
break;
default:
break;

@ -243,10 +243,10 @@
<if test="action != ''and action != null">
AND basic_bussiness_type.action = #{action}
</if>
<if test="enable != ''and enable != null">
<if test="enable != null">
AND basic_bussiness_type.enable = #{enable}
</if>
<if test="spUse != ''and spUse != null">
<if test="spUse != null">
AND basic_bussiness_type.spUse = #{spUse}
</if>
<if test="code != ''and code != null">

Loading…
Cancel
Save