Commit 33927d78 by 章家宝

Merge remote-tracking branch 'origin/v5.6.0' into v5.6.0

2 parents 6fe16bd6 cf0f8288
package cn.com.glsx.dj.staff.controller.perfSalary; package cn.com.glsx.dj.staff.controller.perfSalary;
import cn.com.glsx.dj.smartcarlife.dto.LoginUserDTO;
import cn.com.glsx.dj.staff.dto.perfSalary.PerfRuleConfigDetailDTO; import cn.com.glsx.dj.staff.dto.perfSalary.PerfRuleConfigDetailDTO;
import cn.com.glsx.dj.staff.dto.perfSalary.PerfRuleConfigUpdateDTO; import cn.com.glsx.dj.staff.dto.perfSalary.PerfRuleConfigUpdateDTO;
import cn.com.glsx.dj.staff.dto.perfSalary.PerfRuleExportDTO; import cn.com.glsx.dj.staff.dto.perfSalary.PerfRuleExportDTO;
...@@ -63,8 +64,10 @@ public class PerfRuleController { ...@@ -63,8 +64,10 @@ public class PerfRuleController {
// @PostMapping("/dj.staff.api.perf.rule.config.update/1.0.0") // @PostMapping("/dj.staff.api.perf.rule.config.update/1.0.0")
public RopResponse<Boolean> perfRuleConfigUpdate(PerfRuleConfigUpdateRequest request) { public RopResponse<Boolean> perfRuleConfigUpdate(PerfRuleConfigUpdateRequest request) {
PerfRuleConfigUpdateDTO perfRuleConfigUpdateDTO = CommonUtil.convertRequest(PerfRuleConfigUpdateDTO.class); PerfRuleConfigUpdateDTO perfRuleConfigUpdateDTO = CommonUtil.convertRequest(PerfRuleConfigUpdateDTO.class);
perfRuleConfigUpdateDTO.setOperatorId(request.getOperatorId()); // 获取登录人信息
perfRuleConfigUpdateDTO.setOperatorName(request.getOperatorName()); LoginUserDTO loginUser =CommonUtil.getLoginUser();
perfRuleConfigUpdateDTO.setOperatorId(loginUser.getUuid());
perfRuleConfigUpdateDTO.setOperatorName(loginUser.getUserName());
RpcResponse<Boolean> response = perfRuleRemote.perfRuleConfigUpdate(perfRuleConfigUpdateDTO); RpcResponse<Boolean> response = perfRuleRemote.perfRuleConfigUpdate(perfRuleConfigUpdateDTO);
return CommonUtil.convertRopResponse(response); return CommonUtil.convertRopResponse(response);
} }
......
package cn.com.glsx.dj.staff.controller.salaryappealapply; package cn.com.glsx.dj.staff.controller.salaryappealapply;
import cn.com.glsx.dj.smartcarlife.dto.LoginUserDTO;
import cn.com.glsx.dj.staff.convert.StaffSalaryAppealApplyRecordDTOConvert; import cn.com.glsx.dj.staff.convert.StaffSalaryAppealApplyRecordDTOConvert;
import cn.com.glsx.dj.staff.dto.StaffSalaryAppealApplyRecordDTO; import cn.com.glsx.dj.staff.dto.StaffSalaryAppealApplyRecordDTO;
import cn.com.glsx.dj.staff.remote.salaryappealapply.StaffSalaryAppealApplyRecordRemote; import cn.com.glsx.dj.staff.remote.salaryappealapply.StaffSalaryAppealApplyRecordRemote;
...@@ -20,6 +21,7 @@ import io.swagger.annotations.ApiOperation; ...@@ -20,6 +21,7 @@ import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -75,14 +77,17 @@ public class StaffSalaryAppealApplyRecordController { ...@@ -75,14 +77,17 @@ public class StaffSalaryAppealApplyRecordController {
@ServiceMethod(method = "dj.staff.api.salaryappeal.reply", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.salaryappeal.reply", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.salaryappeal.reply/1.0.0") @PostMapping("/dj.staff.api.salaryappeal.reply/1.0.0")
public RopResponse<Boolean> reply(SalaryAppealReplyRequest request) { public RopResponse<Boolean> reply(SalaryAppealReplyRequest request) {
String userName = CommonUtil.getLoginUser().getUserName(); LoginUserDTO loginUser = CommonUtil.getLoginUser();
Assert.notNull(loginUser, "登录信息不能为空");
StaffSalaryAppealApplyRecordDTO dto = new StaffSalaryAppealApplyRecordDTO(); StaffSalaryAppealApplyRecordDTO dto = new StaffSalaryAppealApplyRecordDTO();
dto.setId(request.getAppealRecordId()); dto.setId(request.getAppealRecordId());
dto.setConfirmActualAttendanceDays(request.getConfirmActualAttendanceDays()); dto.setConfirmActualAttendanceDays(request.getConfirmActualAttendanceDays());
dto.setConfirmPadRecordNum(request.getConfirmPadRecordNum()); dto.setConfirmPadRecordNum(request.getConfirmPadRecordNum());
dto.setReplyContent(request.getReplyContent()); dto.setReplyContent(request.getReplyContent());
dto.setUpdatedBy(userName); dto.setUpdatedBy(loginUser.getUserName());
dto.setReplyPhone(loginUser.getPhone());
dto.setReplyName(loginUser.getUserName());
RpcResponse<Boolean> rpcResponse = staffSalaryAppealApplyRecordRemote.webReply(dto); RpcResponse<Boolean> rpcResponse = staffSalaryAppealApplyRecordRemote.webReply(dto);
return CommonUtil.convertRopResponse(rpcResponse); return CommonUtil.convertRopResponse(rpcResponse);
......
...@@ -8,6 +8,7 @@ import lombok.NoArgsConstructor; ...@@ -8,6 +8,7 @@ import lombok.NoArgsConstructor;
import lombok.ToString; import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Column;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
...@@ -38,4 +39,7 @@ public class EffectiveReferralDetailResponse implements Serializable { ...@@ -38,4 +39,7 @@ public class EffectiveReferralDetailResponse implements Serializable {
@ApiModelProperty(value = "运营有效引荐数-总部复核确认") @ApiModelProperty(value = "运营有效引荐数-总部复核确认")
private Integer reviewedEffectiveCount; private Integer reviewedEffectiveCount;
@ApiModelProperty(notes = "是否已复核:0-待复核,1-已复核 2-已失效")
private Integer isReviewed;
} }
...@@ -19,6 +19,7 @@ import cn.com.glsx.framework.core.beans.rpc.RpcPagination; ...@@ -19,6 +19,7 @@ import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse; import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.rop.response.RopResponse; import cn.com.glsx.framework.rop.response.RopResponse;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import com.alibaba.excel.util.DateUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -27,6 +28,7 @@ import org.springframework.stereotype.Service; ...@@ -27,6 +28,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date;
import java.util.List; import java.util.List;
@Slf4j @Slf4j
...@@ -170,6 +172,12 @@ public class EffectiveReferralReviewWebService { ...@@ -170,6 +172,12 @@ public class EffectiveReferralReviewWebService {
for (int i = 0; i < data.size(); i++) { for (int i = 0; i < data.size(); i++) {
EffectiveReferralReviewCommonDTO dto = data.get(i); EffectiveReferralReviewCommonDTO dto = data.get(i);
EffectiveReferralReviewAuditExportVO vo = BeanUtil.copyProperties(dto, EffectiveReferralReviewAuditExportVO.class); EffectiveReferralReviewAuditExportVO vo = BeanUtil.copyProperties(dto, EffectiveReferralReviewAuditExportVO.class);
Date managerCommitTime = dto.getManagerCommitTime();
try {
vo.setManagerCommitTimeStr(DateUtils.format(managerCommitTime, "yyyy-MM-dd HH:mm:ss"));
} catch (Exception e) {
log.info("时间转换异常");
}
vo.setIndex(i + 1); vo.setIndex(i + 1);
excels.add(vo); excels.add(vo);
} }
...@@ -188,7 +196,8 @@ public class EffectiveReferralReviewWebService { ...@@ -188,7 +196,8 @@ public class EffectiveReferralReviewWebService {
* @date 2026年01月19日 * @date 2026年01月19日
*/ */
public RopResponse<Boolean> effectiveReferralAudit(EffectiveReferralAuditRequest request) { public RopResponse<Boolean> effectiveReferralAudit(EffectiveReferralAuditRequest request) {
EffectiveReferralReviewCommonDTO requestDTO = CommonUtil.convertRequest(EffectiveReferralReviewCommonDTO.class); EffectiveReferralReviewCommonDTO requestDTO = new EffectiveReferralReviewCommonDTO();
BeanUtil.copyProperties(request, requestDTO);
//获取登录人信息 //获取登录人信息
LoginUserDTO loginUser =CommonUtil.getLoginUser(); LoginUserDTO loginUser =CommonUtil.getLoginUser();
assert loginUser != null; assert loginUser != null;
......
...@@ -8,6 +8,8 @@ import org.oreframework.commons.office.easyexcel.annotation.ExcelValueReplace; ...@@ -8,6 +8,8 @@ import org.oreframework.commons.office.easyexcel.annotation.ExcelValueReplace;
import org.oreframework.commons.office.easyexcel.converter.ReplaceByteToStringConvert; import org.oreframework.commons.office.easyexcel.converter.ReplaceByteToStringConvert;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/** /**
* @Title: 有效引荐复核导出VO * @Title: 有效引荐复核导出VO
* @Description: 有效引荐复核数据导出 * @Description: 有效引荐复核数据导出
...@@ -80,10 +82,8 @@ public class EffectiveReferralReviewAuditExportVO { ...@@ -80,10 +82,8 @@ public class EffectiveReferralReviewAuditExportVO {
* 区域经理-提交时间 * 区域经理-提交时间
*/ */
@ExcelProperty(value = "提交时间") @ExcelProperty(value = "提交时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ExcelMergeRow(columIndex = 9) @ExcelMergeRow(columIndex = 9)
private String managerCommitTime; private String managerCommitTimeStr;
/** /**
...@@ -98,7 +98,7 @@ public class EffectiveReferralReviewAuditExportVO { ...@@ -98,7 +98,7 @@ public class EffectiveReferralReviewAuditExportVO {
/** /**
* 区域经理名称 * 区域经理名称
*/ */
@ExcelProperty(value = "区域经理") @ExcelProperty(value = "区域运营")
@ExcelMergeRow(columIndex = 11) @ExcelMergeRow(columIndex = 11)
private String managerName; private String managerName;
...@@ -110,4 +110,11 @@ public class EffectiveReferralReviewAuditExportVO { ...@@ -110,4 +110,11 @@ public class EffectiveReferralReviewAuditExportVO {
@ExcelMergeRow(columIndex = 12) @ExcelMergeRow(columIndex = 12)
private String reviewedName; private String reviewedName;
/**
* 复核时间-月份
*/
@ExcelProperty(value = "核查月份")
@ExcelMergeRow(columIndex = 13)
private String reviewMonth;
} }
\ No newline at end of file \ No newline at end of file
...@@ -27,41 +27,43 @@ public class EffectiveReferralReviewExportVO { ...@@ -27,41 +27,43 @@ public class EffectiveReferralReviewExportVO {
@ExcelMergeRow(columIndex = 1) @ExcelMergeRow(columIndex = 1)
private String merchantName; private String merchantName;
/** /**
* 业务场景 1-精品升级(轻改);2-会员权益(广联权益);3-单延保; * 总交车数
*/ */
@ExcelValueReplace(replace={"轻改_1","广联权益_2","单延保_3"},repeatValue=true) @ExcelProperty(value = "系统交车数")
@ExcelProperty(value = "业务场景",converter= ReplaceByteToStringConvert.class)
@ExcelMergeRow(columIndex = 2) @ExcelMergeRow(columIndex = 2)
private Byte sceneType; private Integer totalDeliveryCount;
/** /**
* 二级品牌名称 * 有效引荐数-区域经理
*/ */
@ExcelProperty(value = "车辆品牌") @ExcelProperty(value = "区域有效引荐数")
@ExcelMergeRow(columIndex = 3) @ExcelMergeRow(columIndex = 3)
private String brandName; private Integer areaEffectiveCount;
/** /**
* 总交车数 * 有效引荐数-总部复核确认
*/ */
@ExcelProperty(value = "系统交车数") @ExcelProperty(value = "运营修正有效引荐数")
@ExcelMergeRow(columIndex = 4) @ExcelMergeRow(columIndex = 4)
private Integer totalDeliveryCount; private Integer reviewedEffectiveCount;
/** /**
* 有效引荐数-区域经理 * 业务场景 1-精品升级(轻改);2-会员权益(广联权益);3-单延保;
*/ */
@ExcelProperty(value = "区域有效引荐数") @ExcelValueReplace(replace={"轻改_1","广联权益_2","单延保_3"},repeatValue=true)
@ExcelProperty(value = "业务场景",converter= ReplaceByteToStringConvert.class)
@ExcelMergeRow(columIndex = 5) @ExcelMergeRow(columIndex = 5)
private Integer areaEffectiveCount; private Byte sceneType;
/** /**
* 有效引荐数-总部复核确认 * 二级品牌名称
*/ */
@ExcelProperty(value = "运营修正有效引荐数") @ExcelProperty(value = "车辆品牌")
@ExcelMergeRow(columIndex = 6) @ExcelMergeRow(columIndex = 6)
private Integer reviewedEffectiveCount; private String brandName;
/** /**
* 上传图片url 以,分隔 * 上传图片url 以,分隔
...@@ -80,7 +82,7 @@ public class EffectiveReferralReviewExportVO { ...@@ -80,7 +82,7 @@ public class EffectiveReferralReviewExportVO {
/** /**
* 区域经理名称 * 区域经理名称
*/ */
@ExcelProperty(value = "区域经理") @ExcelProperty(value = "区域运营")
@ExcelMergeRow(columIndex = 9) @ExcelMergeRow(columIndex = 9)
private String managerName; private String managerName;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!