|
|
@@ -6,6 +6,7 @@ import com.malk.server.common.McException;
|
|
|
import com.malk.server.common.McR;
|
|
|
import com.malk.utils.UtilMap;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
@@ -59,4 +60,26 @@ public class EastarYidaController {
|
|
|
return McR.error("400",result.get("error").toString());
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 退回公海,补充前跟进人信息
|
|
|
+ * @param data
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/addPreviousBusinessUser")
|
|
|
+ McR addPreviousBusinessUser(@RequestBody JSONObject data) {
|
|
|
+ log.info("退回公海,补充前跟进人信息, {}", data);
|
|
|
+ McException.assertParamException_Null(data, "formInstId");
|
|
|
+ String formInstId = UtilMap.getString(data, "formInstId");
|
|
|
+ String previousBusinessUserId = UtilMap.getString(data, "previousBusinessUserId"); //前跟进人员userId
|
|
|
+ String previousBusinessGroup = UtilMap.getString(data, "previousBusinessGroup"); //前跟进团队
|
|
|
+ try {
|
|
|
+ yidaService.updatePreviousBusinessUser(formInstId,previousBusinessUserId,previousBusinessGroup);
|
|
|
+ return McR.success();
|
|
|
+ } catch (Exception e) {
|
|
|
+ return McR.error("400",e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|