单据类型相关修改

master
anthonywj 2 years ago
parent c65dcd0c58
commit 33857a988c

@ -220,6 +220,8 @@ public class Constant {
/** /**
* supDelivery * supDelivery
* supDelAudit
* supInout
* supArrival * supArrival
* 退 supReturned * 退 supReturned
* supPurchase * supPurchase
@ -232,5 +234,7 @@ public class Constant {
public static final String ORDER_ACTION_PRE_DETAIL = "preDetail"; public static final String ORDER_ACTION_PRE_DETAIL = "preDetail";
public static final String ORDER_ACTION_SUP_DELIVERY = "supDelivery"; public static final String ORDER_ACTION_SUP_DELIVERY = "supDelivery";
public static final String ORDER_ACTION_SUP_INVOICE = "supInvoice"; public static final String ORDER_ACTION_SUP_INVOICE = "supInvoice";
public static final String ORDER_ACTION_SUP_DELAUDIT = "supDelAudit";
public static final String ORDER_ACTION_SUP_INOUT = "supInout";
} }

@ -86,6 +86,11 @@ public class ConstantStatus {
public static final Integer ACTION_TYPE_ADVANCE = 3; //寄售 public static final Integer ACTION_TYPE_ADVANCE = 3; //寄售
public static final int ORDER_SPUSE_NO = 0; //不允许供应商使用
public static final int ORDER_SPUSE_LOOK = 1; //允许供应商查看
public static final int ORDER_SPUSE_EDIT = 2; //允许供应商编辑
public static final Integer ORDER_STATUS_ADDITIONAL = 5; //补录单据 public static final Integer ORDER_STATUS_ADDITIONAL = 5; //补录单据
// public static final Integer ORDER_STATUS_RECEIVEED = 7; // public static final Integer ORDER_STATUS_RECEIVEED = 7;

@ -196,7 +196,7 @@ public class BasicBussinessTypeController extends BaseController {
bussinessTypeFilterRequest.setUserId(getUserId()); bussinessTypeFilterRequest.setUserId(getUserId());
} else { } else {
//当前用户为供应商,查询单据类型添加允许供应商使用参数 //当前用户为供应商,查询单据类型添加允许供应商使用参数
bussinessTypeFilterRequest.setSpUse(true); bussinessTypeFilterRequest.setSpUse(3);
} }
List<BasicBussinessTypeResponse> bussinessTypeEntities; List<BasicBussinessTypeResponse> bussinessTypeEntities;
bussinessTypeEntities = basicBussinessTypeService.filterJoinByUser( bussinessTypeEntities = basicBussinessTypeService.filterJoinByUser(

@ -307,7 +307,7 @@ public class BasicBussinessTypeEntity {
* 使 * 使
*/ */
@TableField(value = "spUse") @TableField(value = "spUse")
private boolean spUse; private int spUse;
/** /**
* *

@ -19,7 +19,7 @@ public class BussinessTypeFilterRequest extends ListPageRequest {
private String type; private String type;
private Integer index; private Integer index;
private Boolean spUse; private Integer spUse;
private String localAction; private String localAction;
private Boolean secCheckEnable; private Boolean secCheckEnable;

@ -260,7 +260,7 @@ public class BussinessTypeSaveRequest {
/** /**
* 使 * 使
*/ */
private Boolean spUse; private Integer spUse;
/** /**
* *

@ -51,7 +51,7 @@ public class FilterBussinessTypeRequest extends ListPageRequest {
/** /**
* 使 * 使
*/ */
private Boolean spUse; private Integer spUse;
/** /**
* *

@ -46,7 +46,7 @@ public class BasicBussinessTypeResponse {
private Boolean changeEnable; private Boolean changeEnable;
private Boolean genUnit; private Boolean genUnit;
private String defaultUnit; private String defaultUnit;
private Boolean spUse; private int spUse;
private Boolean secCheckEnable; private Boolean secCheckEnable;
private boolean checkUdims; private boolean checkUdims;
private boolean checkPdaEd; private boolean checkPdaEd;

@ -217,18 +217,30 @@ public class BasicBussinessTypeServiceImpl implements IBasicBussinessTypeService
if (StrUtil.isNotEmpty(deliveryInstock) && deliveryInstock.equals("1")) { if (StrUtil.isNotEmpty(deliveryInstock) && deliveryInstock.equals("1")) {
bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>() bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>()
.eq("mainAction", ConstantType.TYPE_PUT).eq("corpType", ConstantStatus.CORP_TYPE_OUT) .eq("mainAction", ConstantType.TYPE_PUT).eq("corpType", ConstantStatus.CORP_TYPE_OUT)
.eq("spUse", true).eq("enable", true)); .eq("spUse", ConstantStatus.ORDER_SPUSE_EDIT).eq("enable", true));
} else { } else {
bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>() bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>()
.eq("mainAction", ConstantType.TYPE_PUT).eq("corpType", ConstantStatus.CORP_TYPE_OUT) .eq("mainAction", ConstantType.TYPE_PUT).eq("corpType", ConstantStatus.CORP_TYPE_OUT)
.eq("spUse", true).eq("inStock", false).eq("enable", true)); .eq("spUse", ConstantStatus.ORDER_SPUSE_EDIT).eq("inStock", false).eq("enable", true));
} }
break; break;
case Constant.ORDER_ACTION_SUP_INVOICE: case Constant.ORDER_ACTION_SUP_INVOICE:
bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>() bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>()
.eq("mainAction", ConstantType.TYPE_PUT).eq("corpType", ConstantStatus.CORP_TYPE_OUT) .eq("mainAction", ConstantType.TYPE_PUT).eq("corpType", ConstantStatus.CORP_TYPE_OUT)
.eq("spUse", true).eq("actionType", 1).eq("enable", true)); .gt("spUse", 0).eq("actionType", 1).eq("enable", true));
break;
case Constant.ORDER_ACTION_SUP_DELAUDIT: //供应商审核送货单
bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>()
.eq("mainAction", ConstantType.TYPE_PUT).eq("corpType", ConstantStatus.CORP_TYPE_OUT)
.gt("spUse", 0).eq("enable", true));
break;
case Constant.ORDER_ACTION_SUP_INOUT: //供应商查询出入库单
bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>()
.gt("spUse", 0).eq("enable", true));
break; break;
default: default:
break; break;

@ -1,6 +1,6 @@
spring: spring:
profiles: profiles:
active: pro active: dev
jmx: jmx:
enabled: false enabled: false

@ -71,7 +71,7 @@
spUse, preIn, supplementAll, createUser, createTime, preInBack, vailDispatch, spUse, preIn, supplementAll, createUser, createTime, preInBack, vailDispatch,
vailGroupBuy, busType, inStock, actionType vailGroupBuy, busType, inStock, actionType
, thrCheckEnable, thrCheckWebNew, thrCheckPdaUn, thrCheckPdaEd, thrCheckUdims, thrCheckPc, thrCheckSp , thrCheckEnable, thrCheckWebNew, thrCheckPdaUn, thrCheckPdaEd, thrCheckUdims, thrCheckPc, thrCheckSp
, thrCheckChange, thrCheckBalance, thrCheckCopy, fillCodeRel,checkVailDate,checkCertExpire) , thrCheckChange, thrCheckBalance, thrCheckCopy, fillCodeRel, checkVailDate, checkCertExpire)
values (#{mainAction}, values (#{mainAction},
#{action}, #{action},
#{name}, #{name},
@ -126,8 +126,7 @@
, #{thrCheckEnable}, #{thrCheckWebNew}, #{thrCheckPdaUn}, #{thrCheckPdaEd}, #{thrCheckUdims}, , #{thrCheckEnable}, #{thrCheckWebNew}, #{thrCheckPdaUn}, #{thrCheckPdaEd}, #{thrCheckUdims},
#{thrCheckPc} #{thrCheckPc}
, #{thrCheckSp}, #{thrCheckChange}, #{thrCheckBalance}, #{thrCheckCopy}, #{fillCodeRel} , #{thrCheckSp}, #{thrCheckChange}, #{thrCheckBalance}, #{thrCheckCopy}, #{fillCodeRel}
, #{checkVailDate}, #{checkExpire}, #{checkCertExpire} , #{checkVailDate}, #{checkExpire}, #{checkCertExpire})
)
</insert> </insert>
<select id="selectBusList" resultType="com.glxp.api.entity.basic.BasicBussinessTypeEntity"> <select id="selectBusList" resultType="com.glxp.api.entity.basic.BasicBussinessTypeEntity">
@ -246,7 +245,10 @@
<if test="enable != null"> <if test="enable != null">
AND basic_bussiness_type.enable = #{enable} AND basic_bussiness_type.enable = #{enable}
</if> </if>
<if test="spUse != null"> <if test="spUse != null and spUse == '3'.toString()">
AND basic_bussiness_type.spUse > 0
</if>
<if test="spUse != null and spUse != '3'.toString()">
AND basic_bussiness_type.spUse = #{spUse} AND basic_bussiness_type.spUse = #{spUse}
</if> </if>
<if test="code != ''and code != null"> <if test="code != ''and code != null">

Loading…
Cancel
Save