|
|
|
@ -1254,16 +1254,17 @@ public class BaseInvoiceController extends AbstractController { |
|
|
|
|
|
|
|
|
|
@PostMapping("/sgrz/changeSuspend") |
|
|
|
|
@SysLog("修改暂挂状态") |
|
|
|
|
@ResponseBody |
|
|
|
|
public Object changeSuspend(@RequestBody Map<String,Object> map){ |
|
|
|
|
|
|
|
|
|
if (map == null){ |
|
|
|
|
return ResponseEntity.ok(R.error("缺少请求参数")); |
|
|
|
|
} |
|
|
|
|
log.info("getUserInfo====>{}",getUserInfo()); |
|
|
|
|
List<String> gfshAll = UserInfoUtil.getGfshAll(getUserInfo().getOrg()); |
|
|
|
|
if (gfshAll ==null || gfshAll.isEmpty()){ |
|
|
|
|
return ResponseEntity.ok(R.error("购方信息不能为空")); |
|
|
|
|
} |
|
|
|
|
// log.info("getUserInfo====>{}",getUserInfo());
|
|
|
|
|
// List<String> gfshAll = UserInfoUtil.getGfshAll(getUserInfo().getOrg());
|
|
|
|
|
// if (gfshAll ==null || gfshAll.isEmpty()){
|
|
|
|
|
// return ResponseEntity.ok(R.error("购方信息不能为空"));
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
JSONObject jsonObject = new JSONObject(map); |
|
|
|
|
String uuids = jsonObject.getString("uuids"); |
|
|
|
@ -1281,7 +1282,7 @@ public class BaseInvoiceController extends AbstractController { |
|
|
|
|
QueryWrapper<BaseTDxRecordInvoice> queryWrap = new QueryWrapper<>(); |
|
|
|
|
queryWrap.in("uuid",uuidList); |
|
|
|
|
|
|
|
|
|
DynamicContextHolder.push(getUserInfo().getDbName()+ DbConstant.BUSINESS_READ); |
|
|
|
|
DynamicContextHolder.push("business"+ DbConstant.BUSINESS_READ); |
|
|
|
|
List<BaseTDxRecordInvoice> list = baseIRzTDxRecordInvoiceService.list(queryWrap); |
|
|
|
|
if (list == null || list.isEmpty()){ |
|
|
|
|
return ResponseEntity.ok(R.error("没有可操作的数据")); |
|
|
|
@ -1295,6 +1296,7 @@ public class BaseInvoiceController extends AbstractController { |
|
|
|
|
pramsMap.put("suspendType",suspendType); |
|
|
|
|
pramsMap.put("uuids",uuids); |
|
|
|
|
pramsMap.put("dbName",getUserInfo().getDbName()); |
|
|
|
|
pramsMap.put("dbName","business"); |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
return ResponseEntity |
|
|
|
|