This commit is contained in:
parent
b2971abc78
commit
8fef6cc97f
|
|
@ -540,6 +540,9 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
|
|||
list.addAll(leaseApplyOutList);
|
||||
}
|
||||
for (LeaseApplyInfo applyInfo : list) {
|
||||
if (applyInfo.getTaskStatus() != null && applyInfo.getTaskStatus() == 1) {
|
||||
continue;
|
||||
}
|
||||
if (applyInfo.getPreCountNum().compareTo(applyInfo.getAlNum()) == 0) {
|
||||
applyInfo.setTaskStatus(LeaseTaskStatusEnum.LEASE_TASK_FINISHED.getStatus());
|
||||
applyInfo.setTaskStatusName(LeaseTaskStatusEnum.LEASE_TASK_FINISHED.getStatusName());
|
||||
|
|
@ -1245,7 +1248,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
|
|||
@Override
|
||||
public AjaxResult leaseOut(LeaseOutRequestVo leaseOutRequestVo) {
|
||||
// 判断库存是否充足
|
||||
if (!CollectionUtils.isEmpty(leaseOutRequestVo.getLeaseOutDetailsList())) {
|
||||
/*if (!CollectionUtils.isEmpty(leaseOutRequestVo.getLeaseOutDetailsList())) {
|
||||
LeaseOutDetails leaseOutDetails = leaseOutRequestVo.getLeaseOutDetailsList().get(0);
|
||||
if (leaseOutDetails != null) {
|
||||
if (leaseOutDetails.getManageType().equals(MaTypeManageTypeEnum.NUMBER_DEVICE.getTypeId())) {
|
||||
|
|
@ -1261,7 +1264,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
for (LeaseOutDetails bean : leaseOutRequestVo.getLeaseOutDetailsList()) {
|
||||
if (Objects.isNull(bean)) {
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -696,7 +696,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
FROM
|
||||
lease_apply_details
|
||||
WHERE
|
||||
parent_id = #{parentId} and type_id = #{typeId}
|
||||
parent_id = #{parentId} and COALESCE(new_type, type_id) = #{typeId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue