| | |
| | | import javax.annotation.Resource;
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | import net.sf.json.JSONArray;
|
| | | import net.sf.json.JSONObject;
|
| | |
|
| | | import org.springframework.stereotype.Controller;
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getAuditTotal")
|
| | | public void getAuditTotal(String callback,Integer state, Integer shwoType, String year, |
| | | public void getAuditTotal(String callback,Integer state, Integer dateType, String year, |
| | | String startTime, String endTime, PrintWriter out) {
|
| | |
|
| | |
|
| | | String validateMsg = validateParams(shwoType, startTime, endTime);
|
| | | String validateMsg = validateParams(dateType, startTime, endTime);
|
| | | if (validateMsg != null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult(validateMsg));
|
| | | return;
|
| | | }
|
| | |
|
| | | if (shwoType != 1 && (!StringUtil.isNullOrEmpty(startTime) || !StringUtil.isNullOrEmpty(endTime))) {
|
| | | if (dateType != 1 && (!StringUtil.isNullOrEmpty(startTime) || !StringUtil.isNullOrEmpty(endTime))) {
|
| | | startTime = null;
|
| | | endTime = null;
|
| | | }
|
| | |
|
| | | try {
|
| | |
|
| | | List<Map<String, Object>> resultList = extractAuditRecordService.countAuditTotal(state, shwoType, |
| | | List<Map<String, Object>> resultList = extractAuditRecordService.countAuditTotal(state, dateType, |
| | | year, startTime, endTime);
|
| | |
|
| | | JSONObject innerList = new JSONObject();
|
| | | if (state == null) {
|
| | | innerList.put("name", "总计");
|
| | | } else if (state == 1) {
|
| | | innerList.put("name", "通过数");
|
| | | } else if (state == 2) {
|
| | | innerList.put("name", "驳回数");
|
| | | }
|
| | | innerList.put("data_list", resultList);
|
| | | |
| | | JSONArray outList = new JSONArray();
|
| | | outList.add(innerList);
|
| | | |
| | | JSONObject data = new JSONObject();
|
| | | data.put("result_list", resultList);
|
| | | data.put("result_list", outList);
|
| | |
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
|
| | |
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getExtractMoney")
|
| | | public void getExtractMoney(String callback,Integer state, Integer shwoType, String year, |
| | | public void getExtractMoney(String callback,Integer state, Integer dateType, String year, |
| | | String startTime, String endTime, PrintWriter out) {
|
| | |
|
| | | String validateMsg = validateParams(shwoType, startTime, endTime);
|
| | | String validateMsg = validateParams(dateType, startTime, endTime);
|
| | | if (validateMsg != null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult(validateMsg));
|
| | | return;
|
| | | }
|
| | |
|
| | |
|
| | | if (shwoType != 1 && (!StringUtil.isNullOrEmpty(startTime) || !StringUtil.isNullOrEmpty(endTime))) {
|
| | | if (dateType != 1 && (!StringUtil.isNullOrEmpty(startTime) || !StringUtil.isNullOrEmpty(endTime))) {
|
| | | startTime = null;
|
| | | endTime = null;
|
| | | }
|
| | |
|
| | | try {
|
| | |
|
| | | List<Map<String, Object>> resultList = extractAuditRecordService.countExtractMoney(state, shwoType, |
| | | List<Map<String, Object>> resultList = extractAuditRecordService.countExtractMoney(state, dateType, |
| | | year, startTime, endTime);
|
| | |
|
| | | JSONObject innerList = new JSONObject();
|
| | | if (state == null) {
|
| | | innerList.put("name", "总计");
|
| | | } else if (state == 0) {
|
| | | innerList.put("name", "待审核");
|
| | | } else if (state == 1) {
|
| | | innerList.put("name", "通过");
|
| | | } else if (state == 2) {
|
| | | innerList.put("name", "驳回");
|
| | | }
|
| | | innerList.put("data_list", resultList);
|
| | | |
| | | JSONArray outList = new JSONArray();
|
| | | outList.add(innerList);
|
| | | |
| | | JSONObject data = new JSONObject();
|
| | | data.put("result_list", resultList);
|
| | | data.put("result_list", outList);
|
| | |
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
|
| | |
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getExtractApplyNumber")
|
| | | public void getExtractApplyNumber(String callback,Integer state, Integer shwoType, String year, |
| | | public void getExtractApplyNumber(String callback,Integer state, Integer dateType, String year, |
| | | String startTime, String endTime, PrintWriter out) {
|
| | |
|
| | | String validateMsg = validateParams(shwoType, startTime, endTime);
|
| | | String validateMsg = validateParams(dateType, startTime, endTime);
|
| | | if (validateMsg != null) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult(validateMsg));
|
| | | return;
|
| | | }
|
| | |
|
| | |
|
| | | if (shwoType != 1 && (!StringUtil.isNullOrEmpty(startTime) || !StringUtil.isNullOrEmpty(endTime))) {
|
| | | if (dateType != 1 && (!StringUtil.isNullOrEmpty(startTime) || !StringUtil.isNullOrEmpty(endTime))) {
|
| | | startTime = null;
|
| | | endTime = null;
|
| | | }
|
| | |
|
| | | try {
|
| | |
|
| | | List<Map<String, Object>> resultList = extractAuditRecordService.countExtractApplyNumber(state, shwoType, |
| | | List<Map<String, Object>> resultList = extractAuditRecordService.countExtractApplyNumber(state, dateType, |
| | | year, startTime, endTime);
|
| | |
|
| | | JSONObject innerList = new JSONObject();
|
| | | if (state == null) {
|
| | | innerList.put("name", "总计");
|
| | | } else if (state == 0) {
|
| | | innerList.put("name", "待审核");
|
| | | } else if (state == 1) {
|
| | | innerList.put("name", "通过");
|
| | | } else if (state == 2) {
|
| | | innerList.put("name", "驳回");
|
| | | }
|
| | | innerList.put("data_list", resultList);
|
| | | |
| | | JSONArray outList = new JSONArray();
|
| | | outList.add(innerList);
|
| | | |
| | | JSONObject data = new JSONObject();
|
| | | data.put("result_list", resultList);
|
| | | data.put("result_list", outList);
|
| | |
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
|
| | |
|