Commit 62096621 by fudahua

关联关系保存

parent 46facba8
...@@ -11,6 +11,8 @@ import com.gic.dict.api.dto.DictDTO; ...@@ -11,6 +11,8 @@ import com.gic.dict.api.dto.DictDTO;
import com.gic.dict.api.service.ManagerDictService; import com.gic.dict.api.service.ManagerDictService;
import com.gic.enterprise.api.dto.StoreDTO; import com.gic.enterprise.api.dto.StoreDTO;
import com.gic.enterprise.api.dto.StorePhotoDTO; import com.gic.enterprise.api.dto.StorePhotoDTO;
import com.gic.haoban.app.customer.dto.StaffOpenRelatedDTO;
import com.gic.haoban.app.customer.service.api.service.StaffMemberRelationApiService;
import com.gic.haoban.base.api.common.ServiceResponse; import com.gic.haoban.base.api.common.ServiceResponse;
import com.gic.haoban.common.utils.EntityUtil; import com.gic.haoban.common.utils.EntityUtil;
import com.gic.haoban.common.utils.HaobanResponse; import com.gic.haoban.common.utils.HaobanResponse;
...@@ -81,6 +83,9 @@ public class InfoController extends WebBaseController{ ...@@ -81,6 +83,9 @@ public class InfoController extends WebBaseController{
@Autowired @Autowired
private ManagerDictService managerDictService; private ManagerDictService managerDictService;
@Autowired
private StaffMemberRelationApiService staffMemberRelationApiService;
private static Logger logger= LoggerFactory.getLogger(InfoController.class); private static Logger logger= LoggerFactory.getLogger(InfoController.class);
@Autowired @Autowired
...@@ -169,6 +174,14 @@ public class InfoController extends WebBaseController{ ...@@ -169,6 +174,14 @@ public class InfoController extends WebBaseController{
logger.info("成员不存在"); logger.info("成员不存在");
return resultResponse(HaoBanErrCode.ERR_6); return resultResponse(HaoBanErrCode.ERR_6);
} }
//保存关联关系
StaffOpenRelatedDTO relatedDTO = new StaffOpenRelatedDTO();
relatedDTO.setMemberId(qo.getMemberId());
relatedDTO.setOpenId(qo.getOpenid());
relatedDTO.setStaffId(staffDTO.getStaffId());
relatedDTO.setWxEnterpriseId(enterpriseDTO.getWxEnterpriseId());
relatedDTO.setGicEnterpriseId(enterpriseDetailDTO.getEnterpriseId());
staffMemberRelationApiService.bindMemberAndStaff(relatedDTO)
ServiceResponse<List<DepartmentDTO>> response = departmentApiService.listStoreListByStaffId(staffDTO.getStaffId()); ServiceResponse<List<DepartmentDTO>> response = departmentApiService.listStoreListByStaffId(staffDTO.getStaffId());
List<DepartmentDTO> result = response.getResult(); List<DepartmentDTO> result = response.getResult();
......
...@@ -51,4 +51,6 @@ ...@@ -51,4 +51,6 @@
<dubbo:reference interface="com.gic.haoban.manage.api.service.MaidianLogApiService" id="maidianLogApiService"/> <dubbo:reference interface="com.gic.haoban.manage.api.service.MaidianLogApiService" id="maidianLogApiService"/>
<dubbo:reference interface="com.gic.haoban.app.customer.service.api.service.StaffMemberRelationApiService" id="staffMemberRelationApiService"/>
</beans> </beans>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment