|
@@ -37,7 +37,6 @@ import com.zhongshu.card.client.type.RefundState;
|
|
|
import com.zhongshu.card.client.type.StatisticType;
|
|
import com.zhongshu.card.client.type.StatisticType;
|
|
|
import com.zhongshu.card.client.type.UserState;
|
|
import com.zhongshu.card.client.type.UserState;
|
|
|
import com.zhongshu.card.client.type.payAccount.RechargeOrderStatus;
|
|
import com.zhongshu.card.client.type.payAccount.RechargeOrderStatus;
|
|
|
-import com.zhongshu.card.client.type.payment.OrderType;
|
|
|
|
|
import com.zhongshu.card.client.type.payment.SettlementState;
|
|
import com.zhongshu.card.client.type.payment.SettlementState;
|
|
|
import com.zhongshu.card.client.type.school.CardState;
|
|
import com.zhongshu.card.client.type.school.CardState;
|
|
|
import com.zhongshu.card.client.utils.DateUtils;
|
|
import com.zhongshu.card.client.utils.DateUtils;
|
|
@@ -53,12 +52,12 @@ import com.zhongshu.card.server.core.domain.org.UserAccount;
|
|
|
import com.zhongshu.card.server.core.domain.payment.ExpenseFlow;
|
|
import com.zhongshu.card.server.core.domain.payment.ExpenseFlow;
|
|
|
import com.zhongshu.card.server.core.domain.school.CardInfo;
|
|
import com.zhongshu.card.server.core.domain.school.CardInfo;
|
|
|
import com.zhongshu.card.server.core.httpRequest.ApiRequestService;
|
|
import com.zhongshu.card.server.core.httpRequest.ApiRequestService;
|
|
|
-import com.zhongshu.card.server.core.model.payment.ExpenseFlowUnionWithModel;
|
|
|
|
|
import com.zhongshu.card.server.core.service.base.CommonService;
|
|
import com.zhongshu.card.server.core.service.base.CommonService;
|
|
|
import com.zhongshu.card.server.core.service.base.SuperService;
|
|
import com.zhongshu.card.server.core.service.base.SuperService;
|
|
|
import com.zhongshu.card.server.core.service.devices.DeviceInfoServiceImpl;
|
|
import com.zhongshu.card.server.core.service.devices.DeviceInfoServiceImpl;
|
|
|
import com.zhongshu.card.server.core.service.mqtt.MqttServiceImpl;
|
|
import com.zhongshu.card.server.core.service.mqtt.MqttServiceImpl;
|
|
|
import com.zhongshu.card.server.core.service.org.OrganizationServiceImpl;
|
|
import com.zhongshu.card.server.core.service.org.OrganizationServiceImpl;
|
|
|
|
|
+import com.zhongshu.card.server.core.service.org.OrganizationUserServiceImpl;
|
|
|
import com.zhongshu.card.server.core.service.pay.WechatPayService;
|
|
import com.zhongshu.card.server.core.service.pay.WechatPayService;
|
|
|
import com.zhongshu.card.server.core.service.permissVerify.DevicePermissVerifyService;
|
|
import com.zhongshu.card.server.core.service.permissVerify.DevicePermissVerifyService;
|
|
|
import com.zhongshu.card.server.core.service.projectAbout.CardInfoServiceImpl;
|
|
import com.zhongshu.card.server.core.service.projectAbout.CardInfoServiceImpl;
|
|
@@ -130,6 +129,9 @@ public class ExpenseFlowServiceImpl extends SuperService implements ExpenseFlowS
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private CardInfoServiceImpl cardInfoService;
|
|
private CardInfoServiceImpl cardInfoService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private OrganizationUserServiceImpl organizationUserService;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 创建流水
|
|
* 创建流水
|
|
|
*
|
|
*
|
|
@@ -402,6 +404,9 @@ public class ExpenseFlowServiceImpl extends SuperService implements ExpenseFlowS
|
|
|
}
|
|
}
|
|
|
entity.setVerifyParamIsSuccess(Boolean.TRUE);
|
|
entity.setVerifyParamIsSuccess(Boolean.TRUE);
|
|
|
entity.setVerifyParamMsg("参数验证成功");
|
|
entity.setVerifyParamMsg("参数验证成功");
|
|
|
|
|
+
|
|
|
|
|
+ // 冗余用户在项目的信息
|
|
|
|
|
+ entity.setStoreUserInfo(organizationUserService.getUserInProjectInfo(projectOid, entity.getUserAccount()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1006,7 +1011,7 @@ public class ExpenseFlowServiceImpl extends SuperService implements ExpenseFlowS
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public ResultContent pageOrder(Pageable pageable, ExpenseFlowSearchParam param) {
|
|
public ResultContent pageOrder(Pageable pageable, ExpenseFlowSearchParam param) {
|
|
|
- if (StringUtils.isNotEmpty(param.getProjectOid())){
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(param.getProjectOid())) {
|
|
|
param.setProjectOid(getCurrentProjectOid());
|
|
param.setProjectOid(getCurrentProjectOid());
|
|
|
}
|
|
}
|
|
|
Page<ExpenseFlow> expenseFlows = expenseFlowDao.pageOrder(pageable, param);
|
|
Page<ExpenseFlow> expenseFlows = expenseFlowDao.pageOrder(pageable, param);
|
|
@@ -1017,7 +1022,7 @@ public class ExpenseFlowServiceImpl extends SuperService implements ExpenseFlowS
|
|
|
ExpenseFlowPageModel model = new ExpenseFlowPageModel();
|
|
ExpenseFlowPageModel model = new ExpenseFlowPageModel();
|
|
|
if (expenseFlow != null) {
|
|
if (expenseFlow != null) {
|
|
|
BeanUtils.copyProperties(expenseFlow, model);
|
|
BeanUtils.copyProperties(expenseFlow, model);
|
|
|
- if (StringUtils.isNotEmpty(expenseFlow.getRefundUserId())){
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(expenseFlow.getRefundUserId())) {
|
|
|
UserAccount refundUser = userCountDao.findTopByUserId(expenseFlow.getRefundUserId());
|
|
UserAccount refundUser = userCountDao.findTopByUserId(expenseFlow.getRefundUserId());
|
|
|
model.setRefundUserName(refundUser.getName());
|
|
model.setRefundUserName(refundUser.getName());
|
|
|
}
|
|
}
|
|
@@ -1031,7 +1036,7 @@ public class ExpenseFlowServiceImpl extends SuperService implements ExpenseFlowS
|
|
|
return ResultContent.buildContent(PageEntityUtil.concurrent2PageModel(page, this::toOrderUnionModel));
|
|
return ResultContent.buildContent(PageEntityUtil.concurrent2PageModel(page, this::toOrderUnionModel));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private OrderUnionWithModel toOrderUnionModel(OrderUnionWithModel orderUnionWithModel){
|
|
|
|
|
|
|
+ private OrderUnionWithModel toOrderUnionModel(OrderUnionWithModel orderUnionWithModel) {
|
|
|
if (StringUtils.isNotEmpty(orderUnionWithModel.getDeviceId())) {
|
|
if (StringUtils.isNotEmpty(orderUnionWithModel.getDeviceId())) {
|
|
|
orderUnionWithModel.setDeviceInfo(deviceInfoService.getDeviceInfoModel(orderUnionWithModel.getDeviceId()));
|
|
orderUnionWithModel.setDeviceInfo(deviceInfoService.getDeviceInfoModel(orderUnionWithModel.getDeviceId()));
|
|
|
}
|
|
}
|