|
|
|
@ -1,11 +1,13 @@ |
|
|
|
package com.gaotao.modules.report.controller; |
|
|
|
|
|
|
|
import com.gaotao.common.constant.SysMsgConstant; |
|
|
|
import com.gaotao.common.utils.R; |
|
|
|
import com.gaotao.modules.report.data.CustomerReportData; |
|
|
|
import com.gaotao.modules.report.data.CustomerReportRoleData; |
|
|
|
import com.gaotao.modules.report.data.CustomerSearchColumnData; |
|
|
|
import com.gaotao.modules.report.data.SearchReportData; |
|
|
|
import com.gaotao.modules.report.service.ReportService; |
|
|
|
import com.gaotao.modules.sys.controller.AbstractController; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
@ -20,7 +22,7 @@ import java.util.Map; |
|
|
|
*/ |
|
|
|
@RestController |
|
|
|
@RequestMapping("/report") |
|
|
|
public class ReportController { |
|
|
|
public class ReportController extends AbstractController { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ReportService reportService; |
|
|
|
@ -37,7 +39,7 @@ public class ReportController { |
|
|
|
List<Map<String, Object>> resultList = reportService.getReportTypeList(inMap); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!") |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)) |
|
|
|
.put("rows", resultList) |
|
|
|
.put("total", resultList.size()); |
|
|
|
} |
|
|
|
@ -54,7 +56,7 @@ public class ReportController { |
|
|
|
List<CustomerReportData> resultList = reportService.getCustomerReportList(inData); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!") |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)) |
|
|
|
.put("rows", resultList) |
|
|
|
.put("total", resultList.size()); |
|
|
|
} |
|
|
|
@ -71,7 +73,7 @@ public class ReportController { |
|
|
|
SearchReportData resultRow = reportService.addCustomerReport(inData); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!") |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)) |
|
|
|
.put("row", resultRow); |
|
|
|
} |
|
|
|
|
|
|
|
@ -87,7 +89,7 @@ public class ReportController { |
|
|
|
CustomerReportData resultRow = reportService.getCustomerReportByReportId(inData); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!") |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)) |
|
|
|
.put("row", resultRow); |
|
|
|
} |
|
|
|
|
|
|
|
@ -103,7 +105,7 @@ public class ReportController { |
|
|
|
reportService.saveCustomerReport(inData); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!"); |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -118,7 +120,7 @@ public class ReportController { |
|
|
|
List<CustomerSearchColumnData> resultList = reportService.getSearchColumnsByReportId(inData); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!") |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)) |
|
|
|
.put("rows", resultList) |
|
|
|
.put("total", resultList.size()); |
|
|
|
} |
|
|
|
@ -135,7 +137,7 @@ public class ReportController { |
|
|
|
reportService.autoProcessSearchColumn(inData); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!"); |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -151,7 +153,7 @@ public class ReportController { |
|
|
|
reportService.saveCustomerSearchColumns(inMap); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!"); |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -166,7 +168,7 @@ public class ReportController { |
|
|
|
Map<String, Object> resultMap = reportService.runCustomerReport(inMap); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!") |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)) |
|
|
|
.put("resultMap", resultMap); |
|
|
|
} |
|
|
|
|
|
|
|
@ -182,7 +184,7 @@ public class ReportController { |
|
|
|
reportService.deleteCustomerReport(inData); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!"); |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -197,7 +199,7 @@ public class ReportController { |
|
|
|
reportService.deleteCustomerReportSearchColumn(inData); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!"); |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -212,7 +214,7 @@ public class ReportController { |
|
|
|
List<CustomerReportRoleData> resultList = reportService.getAuthRoles(inData); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!") |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)) |
|
|
|
.put("rows", resultList) |
|
|
|
.put("total", resultList.size()); |
|
|
|
} |
|
|
|
@ -230,7 +232,7 @@ public class ReportController { |
|
|
|
reportService.saveAuthSingleCustomerReport(inMap); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!"); |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -245,7 +247,7 @@ public class ReportController { |
|
|
|
List<CustomerReportData> resultList = reportService.getUserCustomerReportList(inData); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!") |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)) |
|
|
|
.put("rows", resultList) |
|
|
|
.put("total", resultList.size()); |
|
|
|
} |
|
|
|
@ -262,7 +264,7 @@ public class ReportController { |
|
|
|
List<CustomerReportData> resultList = reportService.getCustomerReportAuths(inData); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!") |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)) |
|
|
|
.put("rows", resultList) |
|
|
|
.put("total", resultList.size()); |
|
|
|
} |
|
|
|
@ -279,7 +281,7 @@ public class ReportController { |
|
|
|
reportService.saveCustomerReportAuths(inMap); |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("msg", "操作成功!"); |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -295,7 +297,7 @@ public class ReportController { |
|
|
|
return R.ok() |
|
|
|
.put("code", 200) |
|
|
|
.put("resultMap", resultMap) |
|
|
|
.put("msg", "操作成功!"); |
|
|
|
.put("msg", getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|