|
|
@ -15,6 +15,7 @@ import com.epmet.evaluationindex.screen.dto.form.FineExampleFormDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.form.VolunteerServiceFormDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.result.*; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@ -30,6 +31,7 @@ import java.util.*; |
|
|
|
* @author yinzuomei@elink-cn.com |
|
|
|
* @date 2020/8/18 10:22 |
|
|
|
*/ |
|
|
|
@Slf4j |
|
|
|
@Service |
|
|
|
@DataSource(DataSourceConstant.EVALUATION_INDEX) |
|
|
|
public class PartyMemberLeadServiceImpl implements PartyMemberLeadService { |
|
|
@ -194,6 +196,18 @@ public class PartyMemberLeadServiceImpl implements PartyMemberLeadService { |
|
|
|
return xAxis; |
|
|
|
} |
|
|
|
|
|
|
|
public List<String> getXproEndMonth(String monthId) { |
|
|
|
List<String> xAxis = new ArrayList<>(); |
|
|
|
for (int i = NumConstant.ELEVEN; i >= NumConstant.ZERO; i--) { |
|
|
|
Calendar c = Calendar.getInstance(); |
|
|
|
c.setTime(com.epmet.commons.tools.utils.DateUtils.stringToDate(monthId.concat("01"), com.epmet.commons.tools.utils.DateUtils.DATE_PATTERN_YYYYMMDD)); |
|
|
|
c.add(Calendar.MONTH, -i); |
|
|
|
Date date = c.getTime(); |
|
|
|
String month = com.epmet.commons.tools.utils.DateUtils.format(date, com.epmet.commons.tools.utils.DateUtils.DATE_PATTERN_YYYYMM); |
|
|
|
xAxis.add(month.substring(4, 6).concat(ScreenConstant.MONTH)); |
|
|
|
} |
|
|
|
return xAxis; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 4、先进排行榜单-先进支部排行 |
|
|
|