|
|
@@ -52,6 +52,9 @@ public class PtServiceController extends BaseController {
|
|
|
@Autowired
|
|
|
private IPtServiceRunLogService serviceRunLogService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IMdModelInfoService mdModelInfoService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private SM4Util sm4Util;
|
|
|
|
|
|
@@ -66,7 +69,21 @@ public class PtServiceController extends BaseController {
|
|
|
ptService.setMaintainContacer(sm4Util.encrypt(ptService.getMaintainContacer()));
|
|
|
ptService.setAdName(sm4Util.encrypt(ptService.getAdName()));
|
|
|
|
|
|
+ ptService.setAudit("0");
|
|
|
+ ptService.setPublish("0");
|
|
|
+
|
|
|
boolean save = ptServiceService.save(ptService);
|
|
|
+
|
|
|
+ MdModelInfo mdModelInfo = mdModelInfoService.selectMdModelInfoByMdid(ptService.getMdid());
|
|
|
+ if ("1".equals(mdModelInfo.getAudit())){ //模型以审核通过
|
|
|
+ mdModelInfo.setAudit("3");
|
|
|
+ mdModelInfoService.audit(mdModelInfo);
|
|
|
+ }
|
|
|
+ if ("1".equals(mdModelInfo.getPublish())){ //模型以审核通过
|
|
|
+ mdModelInfo.setPublish("3");
|
|
|
+ mdModelInfoService.publish(mdModelInfo);
|
|
|
+ }
|
|
|
+
|
|
|
if (save) {
|
|
|
return AjaxResult.success(ptService);
|
|
|
|
|
|
@@ -209,6 +226,22 @@ public class PtServiceController extends BaseController {
|
|
|
ptService.setMaintainContacer(sm4Util.encrypt(ptService.getMaintainContacer()));
|
|
|
ptService.setAdName(sm4Util.encrypt(ptService.getAdName()));
|
|
|
|
|
|
+
|
|
|
+ boolean save = ptServiceService.save(ptService);
|
|
|
+
|
|
|
+ MdModelInfo mdModelInfo = mdModelInfoService.selectMdModelInfoByMdid(ptService.getMdid());
|
|
|
+
|
|
|
+
|
|
|
+ if ("1".equals(mdModelInfo.getAudit())){ //模型以审核通过
|
|
|
+ mdModelInfo.setAudit("3");
|
|
|
+ mdModelInfoService.audit(mdModelInfo);
|
|
|
+ }
|
|
|
+ if ("1".equals(mdModelInfo.getPublish())){ //模型以审核通过
|
|
|
+ mdModelInfo.setPublish("3");
|
|
|
+ mdModelInfoService.publish(mdModelInfo);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
return AjaxResult.success(ptServiceService.put(ptService));
|
|
|
}
|
|
|
|