Browse Source

新增统一信用代码添加

anderx 3 years ago
parent
commit
b22a73c9ed

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

@@ -1481,10 +1481,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,String introduction
-	,Integer channelType){
+	,Integer channelType,String orgCode){
 		Result res = new Result();
 
-		res.data(customerService.updateUserDate(uid, province, city, area, businessScope, intendedProject,introduction,channelType));
+		res.data(customerService.updateUserDate(uid, province, city, area, businessScope, intendedProject,introduction,channelType,orgCode));
 		return res;
 	}
 

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

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

+ 4 - 2
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -2493,13 +2493,15 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 	}
 
 	@Override
-	public int updateUserDate(String uid,Integer province, Integer city, Integer area, String businessScope, String intendedProject,String introduction,Integer channelType) {
+	public int updateUserDate(String uid,Integer province, Integer city, Integer area, String businessScope, String intendedProject,
+							  String introduction,Integer channelType,String orgCode) {
 		OrganizationIdentity oi =new OrganizationIdentity();
 		oi.setUid(uid);
-		if (province!=null ||city !=null ||area!=null|| businessScope!=null ||intendedProject!=null){
+		if (province!=null ||city !=null ||area!=null|| businessScope!=null ||intendedProject!=null||orgCode!=null){
 			if(province!=null)oi.setLocationProvince(province);
 			if(city!=null)oi.setLocationCity(city);
 			if(area!=null)oi.setLocationArea(area);
+			if (orgCode!=null)oi.setOrgCode(orgCode);
 			if (businessScope!=null){
 				OrganizationIdentity use=organizationIdentityMapper.selectOrgIdentityByUserId(uid);
 				updateBusinessScope(uid,businessScope,use.getBusinessScope(),new Date());