|
@@ -15,7 +15,6 @@ import com.management.platform.service.SysFunctionService;
|
|
|
import com.management.platform.service.WxCorpInfoService;
|
|
|
import com.management.platform.service.impl.ExcelExportServiceImpl;
|
|
|
import com.management.platform.util.HttpRespMsg;
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -274,14 +273,14 @@ public class BusinessOpportunityController {
|
|
|
public Object claim(BusinessOpportunity bo, HttpServletRequest request) {
|
|
|
User user = userMapper.selectById(request.getHeader("Token"));
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
|
- String[] strings = bo.getIds().split(",");
|
|
|
- for (String id : strings) {
|
|
|
- BusinessOpportunity opportunity = boMapper.selectById(id);
|
|
|
- if (StringUtils.isEmpty(opportunity.getInchargerId())){
|
|
|
- msg.setError("商机:"+opportunity.getName()+"未被认领不能转移");
|
|
|
- return msg;
|
|
|
- }
|
|
|
- }
|
|
|
+// String[] strings = bo.getIds().split(",");
|
|
|
+// for (String id : strings) {
|
|
|
+// BusinessOpportunity opportunity = boMapper.selectById(id);
|
|
|
+// if (StringUtils.isEmpty(opportunity.getInchargerId())){
|
|
|
+// msg.setError("商机:"+opportunity.getName()+"未被认领不能转移");
|
|
|
+// return msg;
|
|
|
+// }
|
|
|
+// }
|
|
|
bOservice.getAndTransfer(bo, user);
|
|
|
return msg;
|
|
|
}
|