|
@@ -334,6 +334,10 @@ public class IsMaterialsLoanServiceImpl extends ServiceImpl<IsMaterialsLoanMappe
|
|
|
.eq(IsMaterials::getMaterialsId, dto.getMaterialsId())
|
|
.eq(IsMaterials::getMaterialsId, dto.getMaterialsId())
|
|
|
.eq(IsMaterials::getStatus, "3")
|
|
.eq(IsMaterials::getStatus, "3")
|
|
|
.set(IsMaterials::getStatus, "0"));
|
|
.set(IsMaterials::getStatus, "0"));
|
|
|
|
|
+ // 如果没有绑定柜子,直接结束,因为不用生成借出记录
|
|
|
|
|
+ if (materials.getMaterialsCabinetId() == null || materials.getMaterialsCabinetId() == 0) {
|
|
|
|
|
+ return 1;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
// 1.2借用到期规则
|
|
// 1.2借用到期规则
|
|
|
IsMailNotifyConfig reminderConf = isMailNotifyConfigService.getOne(Wrappers.<IsMailNotifyConfig>lambdaQuery()
|
|
IsMailNotifyConfig reminderConf = isMailNotifyConfigService.getOne(Wrappers.<IsMailNotifyConfig>lambdaQuery()
|