|
|
@ -54,7 +54,7 @@ public class DepositoryRecordController { |
|
|
@GetMapping("/myApply") |
|
|
@GetMapping("/myApply") |
|
|
public RestResponse findDepositoryInAndOutRecordPByCondition(@RequestParam Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse findDepositoryInAndOutRecordPByCondition(@RequestParam Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -84,7 +84,7 @@ public class DepositoryRecordController { |
|
|
@GetMapping("/myTaskOut") |
|
|
@GetMapping("/myTaskOut") |
|
|
public RestResponse myTaskOut(@RequestParam Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse myTaskOut(@RequestParam Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -99,7 +99,7 @@ public class DepositoryRecordController { |
|
|
@GetMapping("/myTaskIn") |
|
|
@GetMapping("/myTaskIn") |
|
|
public RestResponse myTaskIn(@RequestParam Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse myTaskIn(@RequestParam Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -117,7 +117,7 @@ public class DepositoryRecordController { |
|
|
// isDone 为0为未完成,1为已完成
|
|
|
// isDone 为0为未完成,1为已完成
|
|
|
String isDone = (String) (map.get("isDone")); |
|
|
String isDone = (String) (map.get("isDone")); |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -200,7 +200,7 @@ public class DepositoryRecordController { |
|
|
@PostMapping("/depositoryRecord") |
|
|
@PostMapping("/depositoryRecord") |
|
|
public RestResponse insertDepositoryRecord(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse insertDepositoryRecord(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -219,7 +219,7 @@ public class DepositoryRecordController { |
|
|
String header = request.getHeader("user-agent"); |
|
|
String header = request.getHeader("user-agent"); |
|
|
String crypt = Md5.crypt(header); |
|
|
String crypt = Md5.crypt(header); |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -244,8 +244,7 @@ public class DepositoryRecordController { |
|
|
recordIds.add(ObjectFormatUtil.toInteger(map.get("applicationInId"))); |
|
|
recordIds.add(ObjectFormatUtil.toInteger(map.get("applicationInId"))); |
|
|
mtIdList.add(ObjectFormatUtil.toLong(map.get("mtId"))); |
|
|
mtIdList.add(ObjectFormatUtil.toLong(map.get("mtId"))); |
|
|
} |
|
|
} |
|
|
} |
|
|
} else { |
|
|
else { |
|
|
|
|
|
// 获取库位id
|
|
|
// 获取库位id
|
|
|
Integer placeId = ObjectFormatUtil.toInteger(map.get("placeId")); |
|
|
Integer placeId = ObjectFormatUtil.toInteger(map.get("placeId")); |
|
|
if (placeId == 0) {// 如果插入到仓库
|
|
|
if (placeId == 0) {// 如果插入到仓库
|
|
|
@ -438,7 +437,7 @@ public class DepositoryRecordController { |
|
|
@PostMapping("/applicationOut") |
|
|
@PostMapping("/applicationOut") |
|
|
public RestResponse insertApplicationOutRecord(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse insertApplicationOutRecord(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -466,15 +465,21 @@ public class DepositoryRecordController { |
|
|
map.remove("id"); |
|
|
map.remove("id"); |
|
|
map.put("parentId", id); |
|
|
map.put("parentId", id); |
|
|
} |
|
|
} |
|
|
|
|
|
if (map.containsKey("constructionUnitId")) { |
|
|
String constructionUnitId = map.get("constructionUnitId").toString(); |
|
|
String constructionUnitId = map.get("constructionUnitId").toString(); |
|
|
String adminorgId = map.get("adminorgId").toString(); |
|
|
if ("".equals(constructionUnitId)) { |
|
|
if("".equals(constructionUnitId)) |
|
|
|
|
|
{ |
|
|
|
|
|
map.remove("constructionUnitId"); |
|
|
map.remove("constructionUnitId"); |
|
|
} |
|
|
} |
|
|
if("".equals(adminorgId)){ |
|
|
|
|
|
map.put("adminorgId",userToken.getMaindeparment()); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
if (map.containsKey("adminorgId")) { |
|
|
|
|
|
String adminorgId = map.get("adminorgId").toString(); |
|
|
|
|
|
if ("".equals(adminorgId)) { |
|
|
|
|
|
map.put("adminorgId", userToken.getMaindeparment()); |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
map.put("adminorgId", userToken.getMaindeparment()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
integer += depositoryRecordService.insertApplicationOutMin(map); |
|
|
integer += depositoryRecordService.insertApplicationOutMin(map); |
|
|
|
|
|
|
|
|
// 开启一个线程执行发送信息操作
|
|
|
// 开启一个线程执行发送信息操作
|
|
|
@ -542,28 +547,40 @@ public class DepositoryRecordController { |
|
|
insert.put("unit", map.get("unit" + temp)); |
|
|
insert.put("unit", map.get("unit" + temp)); |
|
|
// 获取主订单编号
|
|
|
// 获取主订单编号
|
|
|
insert.put("parentId", id); |
|
|
insert.put("parentId", id); |
|
|
String constructionUnitId = (String) map.get("constructionUnitId"+temp); |
|
|
if (map.containsKey("constructionUnitId" + temp)) { |
|
|
String adminorgId = (String) map.get("adminorgId"+temp); |
|
|
String constructionUnitId = (String) map.get("constructionUnitId" + temp); |
|
|
if(!"".equals(constructionUnitId)) |
|
|
if (!"".equals(constructionUnitId)) { |
|
|
{ |
|
|
insert.put("constructionUnitId", constructionUnitId); |
|
|
insert.put("constructionUnitId",constructionUnitId); |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if (map.containsKey("adminorgId" + temp)) { |
|
|
|
|
|
String adminorgId = (String) map.get("adminorgId" + temp); |
|
|
|
|
|
|
|
|
|
|
|
if ("".equals(adminorgId)) { |
|
|
|
|
|
map.put("adminorgId", userToken.getMaindeparment()); |
|
|
|
|
|
} else { |
|
|
|
|
|
map.put("adminorgId", adminorgId); |
|
|
} |
|
|
} |
|
|
if("".equals(adminorgId)){ |
|
|
} else { |
|
|
map.put("adminorgId",userToken.getMaindeparment()); |
|
|
map.put("adminorgId", userToken.getMaindeparment()); |
|
|
}else{ |
|
|
|
|
|
map.put("adminorgId",adminorgId); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 插入子订单
|
|
|
// 插入子订单
|
|
|
integer += depositoryRecordService.insertApplicationOutMin(insert); |
|
|
integer += depositoryRecordService.insertApplicationOutMin(insert); |
|
|
} |
|
|
} |
|
|
|
|
|
if (map.containsKey("constructionUnitId")) { |
|
|
String constructionUnitId = map.get("constructionUnitId").toString(); |
|
|
String constructionUnitId = map.get("constructionUnitId").toString(); |
|
|
String adminorgId = map.get("adminorgId").toString(); |
|
|
if ("".equals(constructionUnitId)) { |
|
|
if("".equals(constructionUnitId)) |
|
|
|
|
|
{ |
|
|
|
|
|
map.remove("constructionUnitId"); |
|
|
map.remove("constructionUnitId"); |
|
|
} |
|
|
} |
|
|
if("".equals(adminorgId)){ |
|
|
} |
|
|
map.put("adminorgId",userToken.getMaindeparment()); |
|
|
if (map.containsKey("adminorgId")) { |
|
|
|
|
|
String adminorgId = map.get("adminorgId").toString(); |
|
|
|
|
|
if ("".equals(adminorgId)) { |
|
|
|
|
|
map.put("adminorgId", userToken.getMaindeparment()); |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
map.put("adminorgId", userToken.getMaindeparment()); |
|
|
} |
|
|
} |
|
|
// 插入子订单
|
|
|
// 插入子订单
|
|
|
map.put("parentId", id); |
|
|
map.put("parentId", id); |
|
|
@ -620,7 +637,7 @@ public class DepositoryRecordController { |
|
|
@GetMapping("/applicationInView") |
|
|
@GetMapping("/applicationInView") |
|
|
public RestResponse findApplicationInRecordByCondition(@RequestParam Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse findApplicationInRecordByCondition(@RequestParam Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -652,7 +669,7 @@ public class DepositoryRecordController { |
|
|
// 0未完成1已完成
|
|
|
// 0未完成1已完成
|
|
|
Integer stateOnView = ObjectFormatUtil.toInteger(map.get("state")); |
|
|
Integer stateOnView = ObjectFormatUtil.toInteger(map.get("state")); |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -776,17 +793,17 @@ public class DepositoryRecordController { |
|
|
@GetMapping("/applicationOutView") |
|
|
@GetMapping("/applicationOutView") |
|
|
public RestResponse findApplicationOutRecordByCondition(@RequestParam Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse findApplicationOutRecordByCondition(@RequestParam Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userByPort = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userByPort = AuthenticationTokenPool.getUserToken(token); |
|
|
// 获取对应主订单
|
|
|
// 获取对应主订单
|
|
|
List<ApplicationOutRecordP> list = new ArrayList<>(); |
|
|
List<ApplicationOutRecordP> list = new ArrayList<>(); |
|
|
Integer countBy = 0; |
|
|
Integer countBy = 0; |
|
|
if(Integer.compare(userByPort.getMaindeparment(),361)==0){ |
|
|
if (Integer.compare(userByPort.getMaindeparment(), 361) == 0) { |
|
|
list = depositoryRecordService.findApplicationOutRecordPByCondition(map,userByPort); |
|
|
list = depositoryRecordService.findApplicationOutRecordPByCondition(map, userByPort); |
|
|
countBy = depositoryRecordService.findApplicationOutRecordPCountByCondition(map); |
|
|
countBy = depositoryRecordService.findApplicationOutRecordPCountByCondition(map); |
|
|
}else{ |
|
|
} else { |
|
|
|
|
|
|
|
|
list = depositoryRecordService.findApplicationOutRecordPByUser(userByPort, map); |
|
|
list = depositoryRecordService.findApplicationOutRecordPByUser(userByPort, map); |
|
|
countBy = depositoryRecordService.findApplicationOutRecordPCountByUser(userByPort, map); |
|
|
countBy = depositoryRecordService.findApplicationOutRecordPCountByUser(userByPort, map); |
|
|
@ -845,7 +862,7 @@ public class DepositoryRecordController { |
|
|
@PostMapping("/addApplicationToRedis") |
|
|
@PostMapping("/addApplicationToRedis") |
|
|
public RestResponse addApplicationToRedis(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse addApplicationToRedis(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -878,7 +895,7 @@ public class DepositoryRecordController { |
|
|
@PostMapping("/deleteApplicationToRedis") |
|
|
@PostMapping("/deleteApplicationToRedis") |
|
|
public RestResponse deleteApplicationToRedis(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse deleteApplicationToRedis(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -901,7 +918,7 @@ public class DepositoryRecordController { |
|
|
@PutMapping("/review") |
|
|
@PutMapping("/review") |
|
|
public RestResponse review(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse review(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -918,7 +935,7 @@ public class DepositoryRecordController { |
|
|
@PutMapping("/reviewIn") |
|
|
@PutMapping("/reviewIn") |
|
|
public RestResponse reviewIn(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse reviewIn(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -936,7 +953,7 @@ public class DepositoryRecordController { |
|
|
@PutMapping("/transfer") |
|
|
@PutMapping("/transfer") |
|
|
public RestResponse transfer(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse transfer(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -1057,9 +1074,9 @@ public class DepositoryRecordController { |
|
|
|
|
|
|
|
|
// 删除入库记录
|
|
|
// 删除入库记录
|
|
|
@PostMapping("/deleteApplicationInRecord") |
|
|
@PostMapping("/deleteApplicationInRecord") |
|
|
public RestResponse deleteApplicationInRecord(@RequestBody Map<String, Object> map,HttpServletRequest request) { |
|
|
public RestResponse deleteApplicationInRecord(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userByPort = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userByPort = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -1067,10 +1084,10 @@ public class DepositoryRecordController { |
|
|
String crypt = Md5.crypt(header); |
|
|
String crypt = Md5.crypt(header); |
|
|
if (map.containsKey("id")) { |
|
|
if (map.containsKey("id")) { |
|
|
Integer id = ObjectFormatUtil.toInteger(map.get("id")); |
|
|
Integer id = ObjectFormatUtil.toInteger(map.get("id")); |
|
|
return CrudUtil.deleteHandle(depositoryRecordService.deleteApplicationInRecordById(id,userByPort,crypt), 1); |
|
|
return CrudUtil.deleteHandle(depositoryRecordService.deleteApplicationInRecordById(id, userByPort, crypt), 1); |
|
|
} else if (map.containsKey("ids")) { |
|
|
} else if (map.containsKey("ids")) { |
|
|
List<Integer> ids = (List<Integer>) map.get("ids"); |
|
|
List<Integer> ids = (List<Integer>) map.get("ids"); |
|
|
return CrudUtil.deleteHandle(depositoryRecordService.deleteApplicationInRecordByIds(ids,userByPort,crypt), ids.size()); |
|
|
return CrudUtil.deleteHandle(depositoryRecordService.deleteApplicationInRecordByIds(ids, userByPort, crypt), ids.size()); |
|
|
} else { |
|
|
} else { |
|
|
throw new MyException("所需请求参数缺失!"); |
|
|
throw new MyException("所需请求参数缺失!"); |
|
|
} |
|
|
} |
|
|
@ -1080,7 +1097,7 @@ public class DepositoryRecordController { |
|
|
@PostMapping("/deleteApplicationOutRecord") |
|
|
@PostMapping("/deleteApplicationOutRecord") |
|
|
public RestResponse deleteApplicationOutRecord(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse deleteApplicationOutRecord(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userByPort = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userByPort = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -1134,7 +1151,7 @@ public class DepositoryRecordController { |
|
|
int start = (page - 1) * pagesize; |
|
|
int start = (page - 1) * pagesize; |
|
|
Integer end = page * 10; |
|
|
Integer end = page * 10; |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -1190,7 +1207,7 @@ public class DepositoryRecordController { |
|
|
@PostMapping("/createMultiApplication") |
|
|
@PostMapping("/createMultiApplication") |
|
|
public RestResponse createMultiApplication(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse createMultiApplication(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -1303,7 +1320,7 @@ public class DepositoryRecordController { |
|
|
@PostMapping("/createMultiApplications") |
|
|
@PostMapping("/createMultiApplications") |
|
|
public RestResponse createMultiApplications(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse createMultiApplications(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
@ -1498,7 +1515,7 @@ public class DepositoryRecordController { |
|
|
@PostMapping("/isCheckOut") |
|
|
@PostMapping("/isCheckOut") |
|
|
public RestResponse isCheckOut(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
public RestResponse isCheckOut(@RequestBody Map<String, Object> map, HttpServletRequest request) { |
|
|
String token = request.getHeader("user-token"); |
|
|
String token = request.getHeader("user-token"); |
|
|
if(token == null){ |
|
|
if (token == null) { |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
token = (String) request.getSession().getAttribute("userToken"); |
|
|
} |
|
|
} |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
UserByPort userToken = AuthenticationTokenPool.getUserToken(token); |
|
|
|