|
@@ -92,6 +92,9 @@ public class BillSubsidyController {
|
|
@RequestParam("rejectReason") String rejectReason) throws IOException {
|
|
@RequestParam("rejectReason") String rejectReason) throws IOException {
|
|
String content = uploadImage.getImageCom(workImg);
|
|
String content = uploadImage.getImageCom(workImg);
|
|
|
|
|
|
|
|
+ if (content.equals("上次失败")) {
|
|
|
|
+ return new Result(10001, "验收表上传失败,请稍后重试!", false);
|
|
|
|
+ }
|
|
Map<String, String> map = new HashMap<>();
|
|
Map<String, String> map = new HashMap<>();
|
|
map.put("id", id);
|
|
map.put("id", id);
|
|
map.put("type", type);
|
|
map.put("type", type);
|
|
@@ -196,15 +199,18 @@ public class BillSubsidyController {
|
|
}
|
|
}
|
|
|
|
|
|
@PostMapping("/updatePayStatus")
|
|
@PostMapping("/updatePayStatus")
|
|
- public Result updatePayStatus(@RequestBody Map<String, String> paramsMap) {
|
|
|
|
|
|
+ public Result updatePayStatus(HttpServletRequest httpServletRequest,@RequestBody Map<String, String> paramsMap) {
|
|
String ids = paramsMap.get("ids");
|
|
String ids = paramsMap.get("ids");
|
|
String[] split = ids.split(",");
|
|
String[] split = ids.split(",");
|
|
|
|
+ Long name = TokenSign.getMemberIdByJwtToken(httpServletRequest);
|
|
List list = new ArrayList();
|
|
List list = new ArrayList();
|
|
for (String s : split) {
|
|
for (String s : split) {
|
|
|
|
|
|
BillSubsidy billSubsidy = new BillSubsidy();
|
|
BillSubsidy billSubsidy = new BillSubsidy();
|
|
billSubsidy.setId(Long.parseLong(s));
|
|
billSubsidy.setId(Long.parseLong(s));
|
|
billSubsidy.setIsPay(2);
|
|
billSubsidy.setIsPay(2);
|
|
|
|
+ billSubsidy.setPayTime(new Date());
|
|
|
|
+ billSubsidy.setPayUser(name.toString());
|
|
list.add(billSubsidy);
|
|
list.add(billSubsidy);
|
|
}
|
|
}
|
|
subsidyService.updateBatchById(list);
|
|
subsidyService.updateBatchById(list);
|