Merge branch 'dev-cq' of http://192.168.0.56:3000/bonus/devicesmgt into dev-cq
This commit is contained in:
commit
6ef47533e0
|
|
@ -153,7 +153,9 @@ public class LeaseOutDetails implements Serializable {
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "数据所属组织")
|
@ApiModelProperty(value = "数据所属组织")
|
||||||
private Integer companyId;
|
private Integer companyId;
|
||||||
@ApiModelProperty(value = "出库类型")
|
@ApiModelProperty(value = "出库类型 0编码出库 1数量出库")
|
||||||
private Integer manageType;
|
private Integer manageType;
|
||||||
|
@ApiModelProperty(value = "数量出库-出库数量")
|
||||||
|
private Integer inputNum;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -59,6 +59,11 @@ public class TmTask implements Serializable {
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value="已出库数量")
|
@ApiModelProperty(value="已出库数量")
|
||||||
private Integer alNum;
|
private Integer alNum;
|
||||||
|
/**
|
||||||
|
* 库存
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value="库存")
|
||||||
|
private Integer num;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编号
|
* 编号
|
||||||
|
|
|
||||||
|
|
@ -147,6 +147,9 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
|
||||||
// 1、判断是否重复提交
|
// 1、判断是否重复提交
|
||||||
res = checkRepeatSubmit(record);
|
res = checkRepeatSubmit(record);
|
||||||
if (res > 0) {
|
if (res > 0) {
|
||||||
|
if (record.getManageType() == 1 && record.getInputNum() != null) {
|
||||||
|
record.setOutNum(record.getInputNum().doubleValue());
|
||||||
|
}
|
||||||
//2、判断库存是否足够
|
//2、判断库存是否足够
|
||||||
res = checkStorageNum(record);
|
res = checkStorageNum(record);
|
||||||
if (res > 0) {
|
if (res > 0) {
|
||||||
|
|
|
||||||
|
|
@ -945,6 +945,7 @@
|
||||||
mt2.type_name as typeName,
|
mt2.type_name as typeName,
|
||||||
mt.type_name as typeModelName,
|
mt.type_name as typeModelName,
|
||||||
mt.manage_type as manageType,
|
mt.manage_type as manageType,
|
||||||
|
mt.num as num,
|
||||||
su.user_name as userName,
|
su.user_name as userName,
|
||||||
lad.type_id as typeId
|
lad.type_id as typeId
|
||||||
FROM
|
FROM
|
||||||
|
|
@ -959,5 +960,11 @@
|
||||||
<if test="userId != 1">
|
<if test="userId != 1">
|
||||||
and mtk.user_id = #{userId}
|
and mtk.user_id = #{userId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="userName != null and userName != ''">
|
||||||
|
and su.user_name = #{userName}
|
||||||
|
</if>
|
||||||
|
<if test="typeId != null and typeId != ''">
|
||||||
|
and lad.type_id = #{typeId}
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue