Commit 27111c83 by 张富康

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

2 parents 0d35046d 40666f86
...@@ -60,7 +60,6 @@ public class EffectiveReferralReview implements Serializable { ...@@ -60,7 +60,6 @@ public class EffectiveReferralReview implements Serializable {
* 复核时间-月份 * 复核时间-月份
*/ */
@ApiModelProperty(notes = "复核时间-月份") @ApiModelProperty(notes = "复核时间-月份")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private String reviewMonth; private String reviewMonth;
/** /**
......
...@@ -34,7 +34,7 @@ public interface EffectiveReferralReviewRemote { ...@@ -34,7 +34,7 @@ public interface EffectiveReferralReviewRemote {
@ApiResponse("复核结果") @ApiResponse("复核结果")
RpcResponse<Boolean> effectiveReferralAudit(@NotNull EffectiveReferralReviewCommonDTO dto); RpcResponse<Boolean> effectiveReferralAudit(@NotNull EffectiveReferralReviewCommonDTO dto);
@ApiMethod("web端有效引荐导出数据查询") /* @ApiMethod("web端有效引荐导出数据查询")
@ApiParam(name = "pagination", notes = "分页查询信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true) @ApiParam(name = "pagination", notes = "分页查询信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("导出数据列表") @ApiResponse("导出数据列表")
RpcResponse<String> effectiveReferralExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination); RpcResponse<String> effectiveReferralExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination);
...@@ -42,5 +42,5 @@ public interface EffectiveReferralReviewRemote { ...@@ -42,5 +42,5 @@ public interface EffectiveReferralReviewRemote {
@ApiMethod("web端有效引荐复核导出数据查询") @ApiMethod("web端有效引荐复核导出数据查询")
@ApiParam(name = "pagination", notes = "分页查询信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true) @ApiParam(name = "pagination", notes = "分页查询信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("复核导出数据列表") @ApiResponse("复核导出数据列表")
RpcResponse<String> effectiveReferralAuditExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination); RpcResponse<String> effectiveReferralAuditExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination);*/
} }
\ No newline at end of file \ No newline at end of file
...@@ -58,7 +58,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie ...@@ -58,7 +58,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
} }
} }
@Override /*@Override
public RpcResponse<String> effectiveReferralExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination) { public RpcResponse<String> effectiveReferralExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination) {
try{ try{
return RpcResponse.success(effectiveReferralReviewService.effectiveReferralExportData(pagination)); return RpcResponse.success(effectiveReferralReviewService.effectiveReferralExportData(pagination));
...@@ -76,5 +76,5 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie ...@@ -76,5 +76,5 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
log.error(e.getMessage(),e); log.error(e.getMessage(),e);
return RpcResponse.error(e); return RpcResponse.error(e);
} }
} }*/
} }
\ No newline at end of file \ No newline at end of file
...@@ -101,10 +101,8 @@ public class EffectiveReferralReviewService { ...@@ -101,10 +101,8 @@ public class EffectiveReferralReviewService {
EffectiveReferralReview effectiveReferralReview = new EffectiveReferralReview(); EffectiveReferralReview effectiveReferralReview = new EffectiveReferralReview();
Date curDate = new Date(); Date curDate = new Date();
//将curDate 转化为 yyyy-MM //将curDate 转化为 yyyy-MM
String format = DateUtil.format(curDate, "yyyy-MM");
effectiveReferralReview.setId(dto.getId()); effectiveReferralReview.setId(dto.getId());
effectiveReferralReview.setReviewedEffectiveCount(dto.getReviewedEffectiveCount()); effectiveReferralReview.setReviewedEffectiveCount(dto.getReviewedEffectiveCount());
effectiveReferralReview.setReviewMonth(format);
effectiveReferralReview.setIsReviewed(1); effectiveReferralReview.setIsReviewed(1);
effectiveReferralReview.setReviewedBy(dto.getUpdatedBy()); effectiveReferralReview.setReviewedBy(dto.getUpdatedBy());
effectiveReferralReview.setReviewedName(dto.getUpdatedBy()); effectiveReferralReview.setReviewedName(dto.getUpdatedBy());
...@@ -114,13 +112,13 @@ public class EffectiveReferralReviewService { ...@@ -114,13 +112,13 @@ public class EffectiveReferralReviewService {
effectiveReferralReviewMapper.updateByPrimaryKeySelective(effectiveReferralReview); effectiveReferralReviewMapper.updateByPrimaryKeySelective(effectiveReferralReview);
} }
public String effectiveReferralExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination) { /*public String effectiveReferralExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination) {
return null; return null;
} }
public String effectiveReferralAuditExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination) { public String effectiveReferralAuditExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination) {
return null; return null;
} }*/
/** /**
* 根据条件查询单条有效引荐数记录 * 根据条件查询单条有效引荐数记录
......
...@@ -82,8 +82,8 @@ ...@@ -82,8 +82,8 @@
AND dclsm.merchant_name LIKE CONCAT('%', #{merchantName}, AND dclsm.merchant_name LIKE CONCAT('%', #{merchantName},
'%') '%')
</if> </if>
<if test="createdDate != null and createdDate != ''"> <if test="reviewMonth != null and reviewMonth != ''">
AND DATE_FORMAT(serr.created_date, '%Y-%m') = #{createdDate} AND serr.review_month = #{reviewMonth}
</if> </if>
GROUP BY GROUP BY
serr.merchant_id serr.merchant_id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!