|
@@ -87,6 +87,7 @@ public class HxhbtjCtl extends BaseWebCtl {
|
|
|
vo.setBnljl(entity.getBnljl() != null ? entity.getBnljl().toString() : "");
|
|
|
vo.setTbzzs(entity.getTbzzs() != null ? entity.getTbzzs().toString() : "");
|
|
|
vo.setRq(entity.getRq() != null ? entity.getRq().toString() : "");
|
|
|
+ vo.setRecordStatus(entity.getRecordStatus());
|
|
|
voList.add(vo);
|
|
|
}
|
|
|
}
|
|
@@ -331,12 +332,8 @@ public class HxhbtjCtl extends BaseWebCtl {
|
|
|
szgk.setId(szgkid);
|
|
|
entity.setSzgk(szgk);
|
|
|
|
|
|
- if (!StringUtils.isEmpty(path) && path.indexOf("bg") > 0) {
|
|
|
- if (path.indexOf("add") > 0) {
|
|
|
- entity.setRecordStatus(BaseEntity.RECORE_STATE_COPY);
|
|
|
- } else {
|
|
|
- entity.setRecordStatus(BaseEntity.RECORE_STATE_BGFLAG);
|
|
|
- }
|
|
|
+ if("1".equals(path)){
|
|
|
+ entity.setRecordStatus(code.getRecordStatus());
|
|
|
}
|
|
|
hxhbtjService.save(entity);
|
|
|
} catch (Exception e) {
|
|
@@ -478,29 +475,44 @@ public class HxhbtjCtl extends BaseWebCtl {
|
|
|
//同步省级数据
|
|
|
@RequestMapping(value = "/saveTbzt")
|
|
|
@ResponseBody
|
|
|
- public WebJsonResult saveTbzt(Model model, String id, String spflag) {
|
|
|
+ public WebJsonResult saveTbzt(Model model,String path, String spflag, String szgkid, String rq, HxhbtjEntity code ) {
|
|
|
WebJsonResult wr = success();
|
|
|
- HxhbtjEntity entity = hxhbtjService.findOne(id);
|
|
|
-
|
|
|
- entity.setSftb(Constants.YES);
|
|
|
- hxhbtjService.save(entity);
|
|
|
-
|
|
|
- String url = "GK_OPERATION_JSJY_HXHBTJ_ONE_CP?condition=ID=" + id;
|
|
|
-
|
|
|
- boolean flag = getTbStatus(url, null);
|
|
|
- if (flag) {
|
|
|
-// entity.setFlowstatus("0");
|
|
|
- entity.setTbzt(Constants.YES);
|
|
|
- hxhbtjService.save(entity);
|
|
|
- } else {
|
|
|
-// entity.setFlowstatus(null);
|
|
|
- entity.setSftb(Constants.NO);
|
|
|
- hxhbtjService.save(entity);
|
|
|
+ try {
|
|
|
+// HxhbtjEntity entity = hxhbtjService.findOne(id);
|
|
|
+ code.setRecordStatus(2);
|
|
|
+ save(model, "1", szgkid, rq, code );
|
|
|
+ } catch (Exception e) {
|
|
|
wr.setSuccess(false);
|
|
|
wr.setMessage("提交失败");
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
return wr;
|
|
|
}
|
|
|
+// @RequestMapping(value = "/saveTbzt")
|
|
|
+// @ResponseBody
|
|
|
+// public WebJsonResult saveTbzt(Model model, String id, String spflag) {
|
|
|
+// WebJsonResult wr = success();
|
|
|
+// HxhbtjEntity entity = hxhbtjService.findOne(id);
|
|
|
+//
|
|
|
+// entity.setSftb(Constants.YES);
|
|
|
+// hxhbtjService.save(entity);
|
|
|
+//
|
|
|
+// String url = "GK_OPERATION_JSJY_HXHBTJ_ONE_CP?condition=ID=" + id;
|
|
|
+//
|
|
|
+// boolean flag = getTbStatus(url, null);
|
|
|
+// if (flag) {
|
|
|
+//// entity.setFlowstatus("0");
|
|
|
+// entity.setTbzt(Constants.YES);
|
|
|
+// hxhbtjService.save(entity);
|
|
|
+// } else {
|
|
|
+//// entity.setFlowstatus(null);
|
|
|
+// entity.setSftb(Constants.NO);
|
|
|
+// hxhbtjService.save(entity);
|
|
|
+// wr.setSuccess(false);
|
|
|
+// wr.setMessage("提交失败");
|
|
|
+// }
|
|
|
+// return wr;
|
|
|
+// }
|
|
|
|
|
|
|
|
|
|