bms2相关修改;

This commit is contained in:
王奎兴
2026-03-18 19:46:52 +08:00
parent e42b8d0ba9
commit d2f309af6b
4 changed files with 28 additions and 9 deletions
@@ -25,6 +25,8 @@ public interface ILeaseService extends IService<Lease>
*/
public Boolean insert(LeaseDO leaseDO);
public Lease insertReturn(LeaseDO leaseDO);
/**
* 修改租赁管理
*/
@@ -40,4 +42,4 @@ public interface ILeaseService extends IService<Lease>
* 查询租赁管理
*/
public LeasePO getInfo(Long leaseId);
}
}
@@ -48,6 +48,18 @@ public class LeaseImpl extends ServiceImpl<LeaseMapper, Lease> implements ILease
return this.save(lease);
}
@Override
public Lease insertReturn(LeaseDO leaseDO) {
LoginUser loginUser = SecurityUtils.getLoginUser();
Lease lease = new Lease();
BeanUtils.copyProperties(leaseDO,lease);
boolean save = this.save(lease);
if (save) {
return lease;
}
return lease;
}
/**
* 修改容器管理
*/
@@ -111,4 +123,4 @@ public class LeaseImpl extends ServiceImpl<LeaseMapper, Lease> implements ILease
// throw new ServiceException("容器编码【" + containerDO.getContainerCode() + "】已存在");
// }
// }
}
}
@@ -46,6 +46,11 @@ public class LeaseDomainService {
return leaseService.insert(leaseDO);
}
public Lease insertReturn(LeaseDO leaseDO) {
return leaseService.insertReturn(leaseDO);
}
/**
* 修改租赁管理
*/
@@ -84,4 +89,4 @@ public class LeaseDomainService {
.in(Lease::getId, leaseIds)
.eq(Lease::getDelFlag, 1));
}
}
}