接单详情
This commit is contained in:
parent
0347e19cce
commit
93f07b531e
|
|
@ -10,6 +10,7 @@ import com.bonus.common.biz.enums.LeaseInfoEnum;
|
||||||
import com.bonus.common.core.exception.ServiceException;
|
import com.bonus.common.core.exception.ServiceException;
|
||||||
import com.bonus.common.core.utils.DateUtils;
|
import com.bonus.common.core.utils.DateUtils;
|
||||||
import com.bonus.common.core.utils.StringUtils;
|
import com.bonus.common.core.utils.StringUtils;
|
||||||
|
import com.bonus.common.core.utils.encryption.Sm4Utils;
|
||||||
import com.bonus.common.core.web.domain.AjaxResult;
|
import com.bonus.common.core.web.domain.AjaxResult;
|
||||||
import com.bonus.common.security.utils.SecurityUtils;
|
import com.bonus.common.security.utils.SecurityUtils;
|
||||||
import com.bonus.material.device.mapper.BmFileInfoMapper;
|
import com.bonus.material.device.mapper.BmFileInfoMapper;
|
||||||
|
|
@ -178,6 +179,7 @@ public class MaLeaseInfoServiceImpl implements MaLeaseInfoService {
|
||||||
|
|
||||||
// 2. 查询租赁信息
|
// 2. 查询租赁信息
|
||||||
MaLeaseVo maLeaseVo = leaseInfoMapper.selectByName(maLeaseInfo);
|
MaLeaseVo maLeaseVo = leaseInfoMapper.selectByName(maLeaseInfo);
|
||||||
|
maLeaseVo.setOrderPhone(Sm4Utils.decrypt(maLeaseVo.getOrderPhone()));
|
||||||
List<MaLeaseDetails> leaseDetailsList = leaseInfoMapper.selectDetailsById(maLeaseInfo);
|
List<MaLeaseDetails> leaseDetailsList = leaseInfoMapper.selectDetailsById(maLeaseInfo);
|
||||||
|
|
||||||
// 3. 处理租赁详情信息
|
// 3. 处理租赁详情信息
|
||||||
|
|
@ -272,6 +274,7 @@ public class MaLeaseInfoServiceImpl implements MaLeaseInfoService {
|
||||||
//查询列表中数据,如果需求截止日期超过当前,则修改状态为已过期
|
//查询列表中数据,如果需求截止日期超过当前,则修改状态为已过期
|
||||||
for (MaLeaseVo maLeaseVo : list) {
|
for (MaLeaseVo maLeaseVo : list) {
|
||||||
Date endTime = maLeaseVo.getEndTime();
|
Date endTime = maLeaseVo.getEndTime();
|
||||||
|
maLeaseVo.setOrderPhone(Sm4Utils.decrypt(maLeaseVo.getOrderPhone()));
|
||||||
if (maLeaseVo.getLeaseStatus().equals(LeaseInfoEnum.LEASE_PENDING_ORDER.getStatus())
|
if (maLeaseVo.getLeaseStatus().equals(LeaseInfoEnum.LEASE_PENDING_ORDER.getStatus())
|
||||||
&& endTime != null && endTime.before(new Date())) {
|
&& endTime != null && endTime.before(new Date())) {
|
||||||
//根据id修改状态为已过期
|
//根据id修改状态为已过期
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue