Browse Source

渠道列表新增简介

anderx 3 years ago
parent
commit
36dbf806bc

+ 2 - 2
src/main/java/com/goafanti/customer/controller/AdminCustomerApiController.java

@@ -1441,10 +1441,10 @@ public class AdminCustomerApiController extends BaseApiController{
 
 	/** 修改客户关键资料 **/
 	@RequestMapping(value = "/updateUserDate", method = RequestMethod.POST)
-	public Result updateUserDate(String uid,Integer province,Integer city,Integer area,String businessScope,String intendedProject){
+	public Result updateUserDate(String uid,Integer province,Integer city,Integer area,String businessScope,String intendedProject,String introduction){
 		Result res = new Result();
 
-		res.data(customerService.updateUserDate(uid, province, city, area, businessScope, intendedProject));
+		res.data(customerService.updateUserDate(uid, province, city, area, businessScope, intendedProject,introduction));
 		return res;
 	}
 

+ 1 - 1
src/main/java/com/goafanti/customer/service/CustomerService.java

@@ -538,7 +538,7 @@ public interface CustomerService {
 
 	boolean checkData(String uid, String aid);
 
-    int updateUserDate(String uid,Integer province, Integer city, Integer area, String businessScope, String intendedProject);
+    int updateUserDate(String uid,Integer province, Integer city, Integer area, String businessScope, String intendedProject,String introduction);
 
 	Pagination<OutChannelListBo> channelUserList(InputChannelListBo in);
 

+ 5 - 1
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -2368,7 +2368,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 	}
 
 	@Override
-	public int updateUserDate(String uid,Integer province, Integer city, Integer area, String businessScope, String intendedProject) {
+	public int updateUserDate(String uid,Integer province, Integer city, Integer area, String businessScope, String intendedProject,String introduction) {
 		OrganizationIdentity oi =new OrganizationIdentity();
 		oi.setUid(uid);
 		oi.setLocationProvince(province);
@@ -2381,6 +2381,10 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 		OrganizationIdentity use=organizationIdentityMapper.selectOrgIdentityByUserId(uid);
 		oi.setBusinessScope(businessScope);
 		oi.setIntendedProject(intendedProject);
+		User user=new User();
+		user.setId(uid);
+		user.setIntroduction(introduction);
+		userMapper.updateByPrimaryKeySelective(user);
 		return organizationIdentityMapper.updateServiceByUid(oi);
 	}