Commit 40666f86 by 崔彦峰

modify:有效引荐数列表核查月份修改。

1 parent d41587de
...@@ -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;
/** /**
......
...@@ -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());
......
...@@ -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!