|
@@ -71,6 +71,8 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
|
|
private DepartmentMapper departmentMapper;
|
|
|
@Resource
|
|
|
private DepartmentOtherManagerMapper departmentOtherManagerMapper;
|
|
|
+ @Resource
|
|
|
+ private AttachmentCenterMapper attachmentCenterMapper;
|
|
|
|
|
|
@Override
|
|
|
public HttpRespMsg getList(Integer companyId,String userId, String productName, String productCode, Integer pageIndex, Integer pageSize) {
|
|
@@ -464,4 +466,19 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public HttpRespMsg attachmentList(Integer moduleId, String moduleCode) {
|
|
|
+ HttpRespMsg msg=new HttpRespMsg();
|
|
|
+ User user = userMapper.selectById(request.getHeader("token"));
|
|
|
+ if(user==null) {
|
|
|
+ msg.setError("用户不存在");
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
+ // 获取 attachment_center 表里所有的数据
|
|
|
+ List<AttachmentCenter> attachmentCenterList = attachmentCenterMapper.selectList(new LambdaQueryWrapper<AttachmentCenter>()
|
|
|
+ .eq(AttachmentCenter::getModuleId, moduleId)
|
|
|
+ .eq(AttachmentCenter::getModuleCode, moduleCode));
|
|
|
+ msg.setData(attachmentCenterList);
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
}
|