64de006c by xiaojie

【数据资产】

1、认证变更跨平台审批
1 parent 5a240d38
......@@ -89,7 +89,7 @@ public interface EnterpriseService {
List<ChangeInfoVO> getChange(String sourceGuid, Date createTime);
List<ChangeInfoVO> beforeChangeList(Date createTime);
List<ChangeInfoVO> beforeChangeList(String approveGuid);
EnterpriseRSVO getEnterpriseDetailByName(String tenantName);
......
......@@ -304,7 +304,7 @@ public class EnterpriseChangeApproveServiceImpl implements EnterpriseChangeAppro
vo.setChangeList(enterpriseService.getChange(entity.getSourceGuid(), entity.getCreateTime()));
// 生成变更前的数据
vo.setBeforeChangeList(enterpriseService.beforeChangeList(entity.getCreateTime()));
vo.setBeforeChangeList(enterpriseService.beforeChangeList(entity.getApproveGuid()));
return vo;
}
......
......@@ -225,10 +225,11 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
}
@Override
public List<ChangeInfoVO> beforeChangeList(Date createTime){
public List<ChangeInfoVO> beforeChangeList(String approveGuid){
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
LambdaQueryWrapper<MfEnterpriseChangeApprove> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.apply("DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') = '" + simpleDateFormat.format(createTime) + "'");
queryWrapper.eq(MfEnterpriseChangeApprove::getApproveGuid, approveGuid);
// queryWrapper.apply("DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%s') = '" + simpleDateFormat.format(createTime) + "'");
queryWrapper.orderByDesc(MfEnterpriseChangeApprove::getCreateTime);
List<MfEnterpriseChangeApprove> approveList = mfEnterpriseChangeApproveService.list(queryWrapper);
if(CollectionUtils.isEmpty(approveList)){
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!