Commit b601eef8 authored by jiaorz's avatar jiaorz

Merge remote-tracking branch 'origin/dev' into dev

parents e4b8138a 91920686
...@@ -428,10 +428,11 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A ...@@ -428,10 +428,11 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
appUserPositionTempDTO.setPositionId(6); appUserPositionTempDTO.setPositionId(6);
appUserPositionChangeRecordBiz.addPositionChangeRecord(userPositionTemp, oldData, operatorId, appUserPositionTempDTO.getRelTime()); appUserPositionChangeRecordBiz.addPositionChangeRecord(userPositionTemp, oldData, operatorId, appUserPositionTempDTO.getRelTime());
} }
if (Objects.nonNull(appUserPositionTempDTO.getUserId())) { if (Objects.nonNull(appUserPositionTempDTO.getUserId()) && !Objects.equals(0,appUserPositionTempDTO.getUserId())) {
if (StaffChangeStatusEnum.needChangePostionsStatus.contains(changeStatus)) { if (StaffChangeStatusEnum.needChangePostionsStatus.contains(changeStatus)) {
//用户表更改其身份 //用户表更改其身份
AppUserDetail appUserDetail = detailBiz.checkeIsAppUser(userPositionTemp.getUserId()); AppUserDetail appUserDetail = detailBiz.checkeIsAppUser(userPositionTemp.getUserId());
if(Objects.nonNull(appUserDetail) && Objects.nonNull(appUserDetail.getUserid())) {
//1.查询股东表 根据userid 或 手机号 //1.查询股东表 根据userid 或 手机号
Integer postionId = appShareholderDetailBiz.findShareholderByUserIdOrPhone(appUserPositionTempDTO.getUserId(), appUserPositionTempDTO.getPhone()); Integer postionId = appShareholderDetailBiz.findShareholderByUserIdOrPhone(appUserPositionTempDTO.getUserId(), appUserPositionTempDTO.getPhone());
//离职 //离职
...@@ -452,6 +453,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A ...@@ -452,6 +453,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
} }
} }
} }
}
return ObjectRestResponse.succ(); return ObjectRestResponse.succ();
} }
...@@ -471,7 +473,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A ...@@ -471,7 +473,7 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
//用户表更改其身份 //用户表更改其身份
if (Objects.nonNull(appUserPositionTempDTO.getUserId())) { if (Objects.nonNull(appUserPositionTempDTO.getUserId())) {
AppUserDetail appUserDetail = detailBiz.checkeIsAppUser(userPositionTemp.getUserId()); AppUserDetail appUserDetail = detailBiz.checkeIsAppUser(userPositionTemp.getUserId());
if (appUserDetail != null) { if (appUserDetail != null && Objects.nonNull(appUserDetail.getUserid())) {
Integer postionId = appShareholderDetailBiz.findShareholderByUserIdOrPhone(appUserPositionTempDTO.getUserId(), appUserPositionTempDTO.getPhone()); Integer postionId = appShareholderDetailBiz.findShareholderByUserIdOrPhone(appUserPositionTempDTO.getUserId(), appUserPositionTempDTO.getPhone());
postionId = Objects.isNull(postionId) ? appUserPositionTempDTO.getPositionId() : postionId; postionId = Objects.isNull(postionId) ? appUserPositionTempDTO.getPositionId() : postionId;
loginBiz.updateUserPosition(appUserDetail.getUserid(), postionId); loginBiz.updateUserPosition(appUserDetail.getUserid(), postionId);
......
...@@ -64,6 +64,6 @@ public class OrderProfileDispayVo implements Serializable { ...@@ -64,6 +64,6 @@ public class OrderProfileDispayVo implements Serializable {
} }
public BigDecimal getOrderAmount() { public BigDecimal getOrderAmount() {
return CollectionUtils.isEmpty(orderProfiles)?BigDecimal.ZERO:orderProfiles.stream().map(OrderProfileVo::getOrderAmount).reduce(BigDecimal.ZERO,BigDecimal::add); return CollectionUtils.isEmpty(orderProfiles)?BigDecimal.ZERO:orderAmount;
} }
} }
...@@ -89,7 +89,8 @@ public class OrderProfileDisplayBiz extends BaseBiz<OrderProfileDisplayMapper, O ...@@ -89,7 +89,8 @@ public class OrderProfileDisplayBiz extends BaseBiz<OrderProfileDisplayMapper, O
//2.1查询订单数据 //2.1查询订单数据
List<BaseOrderDTO> baseOrders = baseOrderBiz.findOrdersByDate(startDate, endDate); List<BaseOrderDTO> baseOrders = baseOrderBiz.findOrdersByDate(startDate, endDate);
//2.2查询固定数据 //2.2查询固定数据
List<OrderProfileDisplay> orderProfileDisplays = findOrderProfileDisplayDataByDate(startDate, endDate); Date constantEndDate = DateUtil.offsetDay(endDate, -1).toJdkDate();
List<OrderProfileDisplay> orderProfileDisplays = findOrderProfileDisplayDataByDate(startDate, constantEndDate);
CountDownLatch latch = new CountDownLatch(3); CountDownLatch latch = new CountDownLatch(3);
//3. 十大运营中心订单数据 //3. 十大运营中心订单数据
...@@ -155,8 +156,9 @@ public class OrderProfileDisplayBiz extends BaseBiz<OrderProfileDisplayMapper, O ...@@ -155,8 +156,9 @@ public class OrderProfileDisplayBiz extends BaseBiz<OrderProfileDisplayMapper, O
//2.支付终端统计 //2.支付终端统计
wrapToPayProfileWithPayTerminal(baseOrders, orderAmountConstant, largeScreenDisplayConstantDataBo, orderPayProfileDispalyVo); wrapToPayProfileWithPayTerminal(baseOrders, orderAmountConstant, largeScreenDisplayConstantDataBo, orderPayProfileDispalyVo);
BigDecimal realOrderAmount = baseOrders.stream().map(BaseOrderDTO::getRealAmount).reduce(BigDecimal.ZERO, BigDecimal::add);
//累计订单金额 //累计订单金额
orderProfileDispayVo.setOrderAmount(orderAmountConstant); orderProfileDispayVo.setOrderAmount(orderAmountConstant.add(realOrderAmount));
orderProfileDispayVo.setOrderPayProfileDisplay(orderPayProfileDispalyVo); orderProfileDispayVo.setOrderPayProfileDisplay(orderPayProfileDispalyVo);
return orderProfileDispayVo; return orderProfileDispayVo;
} }
......
...@@ -53,6 +53,8 @@ public class CompanyOrderReceivedStatiscsAdminController { ...@@ -53,6 +53,8 @@ public class CompanyOrderReceivedStatiscsAdminController {
public void exportCompanyPerformance(@RequestBody CompanyPerformanceFindDTO companyPerformanceFindDTO, HttpServletResponse response){ public void exportCompanyPerformance(@RequestBody CompanyPerformanceFindDTO companyPerformanceFindDTO, HttpServletResponse response){
try { try {
companyPerformanceFindDTO.setLimit(null);
companyPerformanceFindDTO.setPage(null);
String name = DateTimeFormatter.ofPattern("YYYYMMddHHmmss").format(LocalDateTime.now()); String name = DateTimeFormatter.ofPattern("YYYYMMddHHmmss").format(LocalDateTime.now());
response.setContentType("application/vnd.ms-excel;charset=utf-8"); response.setContentType("application/vnd.ms-excel;charset=utf-8");
String filename = String.format("%s-company-statistics.xlsx",name); String filename = String.format("%s-company-statistics.xlsx",name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment