|
@@ -67,7 +67,8 @@ public class BillAccessDoorController {
|
|
public Result getDoorData(@RequestParam("time") String time,
|
|
public Result getDoorData(@RequestParam("time") String time,
|
|
@RequestParam("result") String result,
|
|
@RequestParam("result") String result,
|
|
@RequestParam("userId") String userId,
|
|
@RequestParam("userId") String userId,
|
|
- @RequestParam("image") MultipartFile image) throws ParseException, IOException {
|
|
|
|
|
|
+ @RequestParam("image") MultipartFile image,
|
|
|
|
+ @RequestParam("userName") String userName) throws ParseException, IOException {
|
|
BillAccessDoor door = new BillAccessDoor();
|
|
BillAccessDoor door = new BillAccessDoor();
|
|
door.setBillStatus(Integer.parseInt(result));
|
|
door.setBillStatus(Integer.parseInt(result));
|
|
DateFormat def = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
DateFormat def = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
@@ -86,6 +87,7 @@ public class BillAccessDoorController {
|
|
door.setFarmId(25);
|
|
door.setFarmId(25);
|
|
door.setLocationId(1);
|
|
door.setLocationId(1);
|
|
door.setCheckLocation("人员初级洗消");
|
|
door.setCheckLocation("人员初级洗消");
|
|
|
|
+ door.setUserName(userName);
|
|
doorService.save(door);
|
|
doorService.save(door);
|
|
return new Result(ResultCode.SUCCESS, time,imageCom);
|
|
return new Result(ResultCode.SUCCESS, time,imageCom);
|
|
}
|
|
}
|