Commit 784e3348 by 徐高华

bug

parent d772a638
......@@ -82,7 +82,7 @@ public class ContentCreativeController {
@RequestMapping("/save-material")
public RestResponse<ContentMaterialDTO> saveMaterial(@Validated @RequestBody ContentMaterialSaveQO saveQO) {
String clerkId = saveQO.getClerkId();
StaffDTO staffDTO = clerkStoreAdaptor.queryStaff(clerkId);
StaffDTO staffDTO = clerkStoreAdaptor.queryStaff(clerkId,saveQO.getWxEnterpriseId());
if (staffDTO == null) {
return RestResponse.failure("-1", "成员不存在");
}
......
......@@ -66,8 +66,8 @@ public class ClerkStoreAdaptor {
return storeRole.getStoreCount();
}
public StaffDTO queryStaff(String clerkId) {
StaffClerkRelationDTO clerkRelationDTO = staffClerkRelationApiService.getByClerkId(clerkId);
public StaffDTO queryStaff(String clerkId,String wxEnterpriseId) {
StaffClerkRelationDTO clerkRelationDTO = staffClerkRelationApiService.getOneByClerkId(clerkId,wxEnterpriseId);
if (clerkRelationDTO != null) {
StaffDTO staffDTO = staffApiService.selectById(clerkRelationDTO.getStaffId());
return staffDTO;
......
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