智慧校园
This commit is contained in:
parent
e40981e095
commit
c75aed3a02
|
@ -57,6 +57,7 @@ public class TenRelationController extends AbstractController {
|
|||
|
||||
@PostMapping("/status")
|
||||
public R upStatus(@RequestBody List<Map<String,Object>> params) {
|
||||
List<String> errMsg = new ArrayList<>();
|
||||
params.forEach(item -> {
|
||||
TenRelation tenRelation = relationService.getById(item.get("id").toString());
|
||||
tenRelation.setStatus(Integer.parseInt(item.get("status").toString()));
|
||||
|
@ -78,7 +79,11 @@ public class TenRelationController extends AbstractController {
|
|||
dataInfo.add(info);
|
||||
opParams.put("dataInfo",dataInfo);
|
||||
JSONObject jsonObject = opFeignClient.submitData(opParams);
|
||||
relationService.updateById(tenRelation);
|
||||
if(jsonObject.getString("shrgStatus").equals("S")) {
|
||||
if(jsonObject.getJSONArray("errInfo").isEmpty()) {
|
||||
relationService.updateById(tenRelation);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return R.ok();
|
||||
|
|
Loading…
Reference in New Issue