|
|
|
@ -7,6 +7,7 @@ import com.ccic.safeliab.excel.ServiceStatExcel; |
|
|
|
|
import com.ccic.safeliab.service.CustomerRetService; |
|
|
|
|
import com.ccic.safeliab.service.StatisticsService; |
|
|
|
|
import com.ccic.safeliab.util.CcicUtill; |
|
|
|
|
import com.ccic.safeliab.util.JwtUtils; |
|
|
|
|
import com.ccic.safeliab.util.R; |
|
|
|
|
import com.ccic.safeliab.vo.CustomerRetentionVO; |
|
|
|
|
import com.ccic.safeliab.vo.CustomerVO; |
|
|
|
@ -17,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.util.StringUtils; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.net.URLEncoder; |
|
|
|
@ -32,7 +34,7 @@ import java.util.Map; |
|
|
|
|
@Slf4j |
|
|
|
|
@RestController |
|
|
|
|
@RequestMapping("/ex/statistics") |
|
|
|
|
public class StatisticsController extends BaseController{ |
|
|
|
|
public class StatisticsController{ |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private StatisticsService statisticsService; |
|
|
|
@ -102,10 +104,10 @@ public class StatisticsController extends BaseController{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/getOrganByOrganId") |
|
|
|
|
public R getOrganByParam(@RequestParam Map<String, Object> param) { |
|
|
|
|
public R getOrganByParam(@RequestParam Map<String, Object> param, HttpServletRequest request) { |
|
|
|
|
String organId = CcicUtill.checkStr(param.get("organId")); |
|
|
|
|
if (StringUtils.isEmpty(organId)) { |
|
|
|
|
param.put("organId", getUserMsg().getOrganId()); |
|
|
|
|
param.put("organId", JwtUtils.getMemberIdByJwtToken(request, "organId")); |
|
|
|
|
} |
|
|
|
|
List<Organ> list = statisticsService.getOrganByParam(param); |
|
|
|
|
if (list == null || list.size() <= 0) { |
|
|
|
|