合并master分支

master
anthonywj 2 years ago
commit 73d6187176

@ -33,7 +33,6 @@ import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.validation.Valid; import javax.validation.Valid;
import java.util.*; import java.util.*;
import java.util.stream.Collectors;
@RestController @RestController
public class InvWarehouseController extends BaseController { public class InvWarehouseController extends BaseController {
@ -132,7 +131,9 @@ public class InvWarehouseController extends BaseController {
return ResultVOUtils.error(500, "当前仓库不能为空!"); return ResultVOUtils.error(500, "当前仓库不能为空!");
} }
FilterInvSubWarehouseRequest filterInvSubWarehouseRequest = new FilterInvSubWarehouseRequest(); FilterInvSubWarehouseRequest filterInvSubWarehouseRequest = new FilterInvSubWarehouseRequest();
if(filterInvWarehouseRequest.getType()==null){
filterInvSubWarehouseRequest.setAdvanceType(1); filterInvSubWarehouseRequest.setAdvanceType(1);
}
List<InvWarehouseEntity> invWarehouseEntities = invWarehouseService.filterInvSubWarehouse(filterInvSubWarehouseRequest); List<InvWarehouseEntity> invWarehouseEntities = invWarehouseService.filterInvSubWarehouse(filterInvSubWarehouseRequest);
List<InvWarehouseEntity> results = new ArrayList<>(); List<InvWarehouseEntity> results = new ArrayList<>();
if (CollUtil.isNotEmpty(invWarehouseEntities)) { if (CollUtil.isNotEmpty(invWarehouseEntities)) {
@ -271,6 +272,13 @@ public class InvWarehouseController extends BaseController {
if (userCount > 0) { if (userCount > 0) {
return ResultVOUtils.error(500, "修改失败,请先移除该仓库关联用户!"); return ResultVOUtils.error(500, "修改失败,请先移除该仓库关联用户!");
} }
// 先判断是否有相同名字的仓库
boolean checkResult = invWarehouseService.checkDuplicateName(invWarehouseEntity.getParentId(), invWarehouseEntity.getName());
if (checkResult) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, "仓库名称重复!");
}
//更新仓库信息 //更新仓库信息
invWarehouseEntity.setUpdateTime(new Date()); invWarehouseEntity.setUpdateTime(new Date());

@ -276,6 +276,8 @@ public class SysUserController extends BaseController {
for (DeptUserEntity deptUserEntity : deptUserEntities) { for (DeptUserEntity deptUserEntity : deptUserEntities) {
if(deptUserEntity.getDeptId() == 1){ if(deptUserEntity.getDeptId() == 1){
checkDeptId=true; checkDeptId=true;
}else{
deptCodeList.add(deptUserEntity.getDeptId());
} }
} }
if(checkDeptId==false){ if(checkDeptId==false){

@ -385,8 +385,8 @@ public class IoPurChangeService {
ioOrderEntity.setUpdateTime(new Date()); ioOrderEntity.setUpdateTime(new Date());
ioOrderEntity.setUpdateUser(purPlanEntity.getCreateUser()); ioOrderEntity.setUpdateUser(purPlanEntity.getCreateUser());
ioOrderEntity.setCustomerId("110"); ioOrderEntity.setCustomerId("110");
ioOrderEntity.setDeptCode(purPlanEntity.getInvCode()); ioOrderEntity.setDeptCode(purPlanEntity.getDeptCode());
ioOrderEntity.setInvCode(purPlanEntity.getDeptCode()); ioOrderEntity.setInvCode(purPlanEntity.getInvCode());
ioOrderService.insertOrder(ioOrderEntity); ioOrderService.insertOrder(ioOrderEntity);
billNo += ioOrderEntity.getBillNo() + ","; billNo += ioOrderEntity.getBillNo() + ",";
//插入业务单表 //插入业务单表

@ -31,4 +31,5 @@ public class FilterInvWarehouseRequest extends ListPageRequest {
private String superiorCode;//上级 private String superiorCode;//上级
private String subordinateCode;//下级 private String subordinateCode;//下级
private String superiorPcode;//上级 private String superiorPcode;//上级
private Integer type;
} }

@ -70,6 +70,7 @@ public class UdiRelevanceResponse {
private Boolean allowNoBatch; private Boolean allowNoBatch;
private Boolean allowNoExpire; private Boolean allowNoExpire;
private Boolean allowNoProduct; private Boolean allowNoProduct;
private Boolean allowNoSerial;
private String spmc; private String spmc;
private String cplx; private String cplx;
private String hchzsb; private String hchzsb;

@ -220,6 +220,9 @@ public class IoOrderResponse {
private Integer processStatus; private Integer processStatus;
private int inCodeStatus; private int inCodeStatus;
private Date checkTime;
private String checkUserName;
/** /**
* *

@ -112,7 +112,7 @@ public class BasicCorpServiceImpl implements BasicCorpService {
if (CollUtil.isNotEmpty(list)) { if (CollUtil.isNotEmpty(list)) {
if (null != basicCorpEntity.getId()) { if (null != basicCorpEntity.getId()) {
for (BasicCorpEntity corpEntity : list) { for (BasicCorpEntity corpEntity : list) {
if (corpEntity.getId() != basicCorpEntity.getId()) { if (!corpEntity.getId().equals(basicCorpEntity.getId())) {
return true; return true;
} }
} }

@ -646,7 +646,7 @@ public class IoOrderServiceImpl implements IoOrderService {
filterOrderRequest.setDealStatuses(Arrays.asList(1, 2, 3, 4)); filterOrderRequest.setDealStatuses(Arrays.asList(1, 2, 3, 4));
break; break;
case Constant.ORDER_STATUS_WAIT_AUDITED: case Constant.ORDER_STATUS_WAIT_AUDITED:
filterOrderRequest.setStatuses(Arrays.asList(10, 7)); filterOrderRequest.setStatuses(Arrays.asList(10));
filterOrderRequest.setDealStatuses(Arrays.asList(3, 4)); filterOrderRequest.setDealStatuses(Arrays.asList(3, 4));
break; break;
case Constant.ORDER_STATUS_UN_ALLOCATE: case Constant.ORDER_STATUS_UN_ALLOCATE:

@ -78,7 +78,7 @@
<delete id="deleteByUser" parameterType="java.lang.Long"> <delete id="deleteByUser" parameterType="java.lang.Long">
delete delete
from auth_dept_user from auth_dept_user
where userId = #{userId} where userId = #{userId} and deptId != 1
</delete> </delete>
<delete id="delete" parameterType="java.lang.Long"> <delete id="delete" parameterType="java.lang.Long">
delete delete

@ -96,6 +96,7 @@
bp.zczbhhzbapzbh, bp.zczbhhzbapzbh,
bp.ylqxzcrbarmc, bp.ylqxzcrbarmc,
bp.nameCode, bp.nameCode,
bp.manufactory,
ad.name deptName, ad.name deptName,
aw.name invName, aw.name invName,
sp.name invSpaceName sp.name invSpaceName
@ -117,6 +118,7 @@
AND pd.invSpaceCode = #{invSpaceCode} AND pd.invSpaceCode = #{invSpaceCode}
</if> </if>
</where> </where>
group by pd.code
</select> </select>
<update id="batchBindSpace"> <update id="batchBindSpace">

@ -64,6 +64,9 @@
<if test="applyType != null"> <if test="applyType != null">
AND generatePlan = 1 AND generatePlan = 1
</if> </if>
<if test="emergency != null">
AND emergency = #{emergency}
</if>
</where> </where>
</select> </select>

@ -86,6 +86,9 @@
<if test="createUser != '' and createUser != null"> <if test="createUser != '' and createUser != null">
AND createUser = #{createUser} AND createUser = #{createUser}
</if> </if>
<if test="emergency != null">
AND emergency = #{emergency}
</if>
</where> </where>
</select> </select>

@ -58,6 +58,9 @@
<if test="createUser != '' and createUser != null"> <if test="createUser != '' and createUser != null">
AND createUser = #{createUser} AND createUser = #{createUser}
</if> </if>
<if test="emergency != null">
AND emergency = #{emergency}
</if>
</where> </where>
</select> </select>

@ -36,7 +36,7 @@
AND thirdSysFk = #{thirdSysFk} AND thirdSysFk = #{thirdSysFk}
</if> </if>
<if test="thirdSys != '' and thirdSys != null"> <if test="thirdSys != '' and thirdSys != null">
AND thirdSys = #{thirdSys} AND thirdSysFk = #{thirdSys}
</if> </if>
<if test="supName != '' and supName != null"> <if test="supName != '' and supName != null">
AND supName LIKE concat('%',#{supName},'%') AND supName LIKE concat('%',#{supName},'%')

Loading…
Cancel
Save