|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.malk.eastar.service.AitableService;
|
|
import com.malk.eastar.service.AitableService;
|
|
|
import com.malk.eastar.service.DDCoreClient;
|
|
import com.malk.eastar.service.DDCoreClient;
|
|
|
|
|
+import com.malk.eastar.service.YidaService;
|
|
|
import com.malk.server.common.McException;
|
|
import com.malk.server.common.McException;
|
|
|
import com.malk.server.common.McR;
|
|
import com.malk.server.common.McR;
|
|
|
import com.malk.utils.UtilMap;
|
|
import com.malk.utils.UtilMap;
|
|
@@ -25,6 +26,9 @@ public class AitableController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private AitableService aitableService;
|
|
private AitableService aitableService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private YidaService yidaService;
|
|
|
|
|
+
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private DDCoreClient ddCoreClient;
|
|
private DDCoreClient ddCoreClient;
|
|
|
|
|
|
|
@@ -62,7 +66,8 @@ public class AitableController {
|
|
|
user.add(unionId);
|
|
user.add(unionId);
|
|
|
fields.put("Iz0yaro",JSONObject.toJSONString(user)); //业务 - S1【人事】
|
|
fields.put("Iz0yaro",JSONObject.toJSONString(user)); //业务 - S1【人事】
|
|
|
String aitableId = aitableService.addSys1SaleData(fields);
|
|
String aitableId = aitableService.addSys1SaleData(fields);
|
|
|
- return McR.success(aitableId);
|
|
|
|
|
|
|
+ yidaService.updateSaleProjectRelatedAitableId(yidaInstanceId, aitableId);
|
|
|
|
|
+ return McR.success();
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
return McR.error("400",e.getMessage());
|
|
return McR.error("400",e.getMessage());
|
|
|
}
|
|
}
|