|
@@ -7,11 +7,11 @@ import com.goafanti.common.bo.OutUser;
|
|
|
import com.goafanti.common.bo.Result;
|
|
import com.goafanti.common.bo.Result;
|
|
|
import com.goafanti.common.constant.AFTConstants;
|
|
import com.goafanti.common.constant.AFTConstants;
|
|
|
import com.goafanti.common.constant.ErrorConstants;
|
|
import com.goafanti.common.constant.ErrorConstants;
|
|
|
-import com.goafanti.common.dao.TOrderMidMapper;
|
|
|
|
|
import com.goafanti.common.enums.UserType;
|
|
import com.goafanti.common.enums.UserType;
|
|
|
import com.goafanti.common.model.User;
|
|
import com.goafanti.common.model.User;
|
|
|
import com.goafanti.common.service.DistrictGlossoryService;
|
|
import com.goafanti.common.service.DistrictGlossoryService;
|
|
|
import com.goafanti.common.service.IndustryCategoryService;
|
|
import com.goafanti.common.service.IndustryCategoryService;
|
|
|
|
|
+import com.goafanti.common.service.PovertyService;
|
|
|
import com.goafanti.common.utils.*;
|
|
import com.goafanti.common.utils.*;
|
|
|
import com.goafanti.common.utils.excel.FileUtils;
|
|
import com.goafanti.common.utils.excel.FileUtils;
|
|
|
import com.goafanti.common.utils.excel.NewExcelUtil;
|
|
import com.goafanti.common.utils.excel.NewExcelUtil;
|
|
@@ -81,7 +81,7 @@ public class PublicController extends CertifyApiController {
|
|
|
private AdminService adminService;
|
|
private AdminService adminService;
|
|
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
|
- private TOrderMidMapper tOrderMidMapper;
|
|
|
|
|
|
|
+ private PovertyService povertyService;
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IndustryCategoryService industryCategoryService;
|
|
private IndustryCategoryService industryCategoryService;
|
|
@@ -769,4 +769,25 @@ public class PublicController extends CertifyApiController {
|
|
|
res.data(expenseAccountService.pushSupplementCheckNo());
|
|
res.data(expenseAccountService.pushSupplementCheckNo());
|
|
|
return res;
|
|
return res;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 查询贫困信息
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @RequestMapping("/selectPoverty")
|
|
|
|
|
+ public Result selectPoverty(@RequestParam(value = "file", required = false) MultipartFile file) {
|
|
|
|
|
+ Result res=new Result();
|
|
|
|
|
+ //判断文件是否存在
|
|
|
|
|
+ if(null == file){
|
|
|
|
|
+ res.getError().add(buildError("文件不存在!","文件不存在!"));
|
|
|
|
|
+ return res;
|
|
|
|
|
+ }
|
|
|
|
|
+ String fileName = file.getOriginalFilename();
|
|
|
|
|
+ if (!fileName.matches("^.+\\.(?i)(xls)$") && !fileName.matches("^.+\\.(?i)(xlsx)$")) {
|
|
|
|
|
+ res.getError().add(buildError("格式不正确","格式不正确"));
|
|
|
|
|
+ return res;
|
|
|
|
|
+ }
|
|
|
|
|
+ res.data(povertyService.selectPoverty(file));
|
|
|
|
|
+ return res;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|