库管员

This commit is contained in:
mashuai 2024-09-04 09:15:08 +08:00
parent 354f3f5ac5
commit fcfc31bb91
6 changed files with 69 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package com.bonus.sgzb.base.controller;
import com.bonus.sgzb.base.api.domain.MaType;
import com.bonus.sgzb.base.domain.MaKeeperUser;
import com.bonus.sgzb.base.domain.vo.TreeSelect;
import com.bonus.sgzb.base.mapper.MaTypeMapper;
import com.bonus.sgzb.base.service.ITypeService;
@ -42,6 +43,14 @@ public class MaTypeController extends BaseController {
return AjaxResult.success(maTypeList);
}
@ApiOperation(value = "查询全部库管员信息")
@GetMapping("/getMaTypeKeeper")
public AjaxResult getMaTypeKeeper(){
List<MaKeeperUser> maTypeList = iTypeService.getMaTypeKeeper();
return AjaxResult.success(maTypeList);
}
/**
* 工机具类型下拉树
* @return 结果

View File

@ -0,0 +1,26 @@
package com.bonus.sgzb.base.domain;
import lombok.Data;
/**
* @Author ma_sh
* @create 2024/7/30 11:04
*/
@Data
public class MaKeeperUser {
/**
* 用户id
*/
private Long userId;
/**
* 用户名称
*/
private String userName;
/**
* 用户昵称
*/
private String nickName;
}

View File

@ -2,6 +2,7 @@ package com.bonus.sgzb.base.mapper;
import com.bonus.sgzb.base.api.domain.MaMachine;
import com.bonus.sgzb.base.api.domain.MaType;
import com.bonus.sgzb.base.domain.MaKeeperUser;
import com.bonus.sgzb.base.domain.MaPropSet;
import com.bonus.sgzb.base.domain.MaTypeKeeper;
import com.bonus.sgzb.base.domain.MaTypeRepair;
@ -83,5 +84,11 @@ public interface MaTypeMapper {
int deletePropSetByTypeId(Long typeId);
/**
* 查询全部库管员信息
* @return
*/
List<MaKeeperUser> getMaTypeKeeper();
int updateTypeNum(MaMachine maMachine);
}

View File

@ -1,6 +1,7 @@
package com.bonus.sgzb.base.service;
import com.bonus.sgzb.base.api.domain.MaType;
import com.bonus.sgzb.base.domain.MaKeeperUser;
import com.bonus.sgzb.base.domain.vo.TreeSelect;
import java.util.List;
@ -69,4 +70,10 @@ public interface ITypeService {
List<MaType> getEquipmentType(Long typeId, String typeName);
/**
* 查询全部库管员信息
* @return
*/
List<MaKeeperUser> getMaTypeKeeper();
}

View File

@ -333,6 +333,15 @@ public class MaTypeServiceImpl implements ITypeService {
return list;
}
/**
* 查询全部库管员信息
* @return
*/
@Override
public List<MaKeeperUser> getMaTypeKeeper() {
return maTypeMapper.getMaTypeKeeper();
}
/**
* @Author dingjie

View File

@ -417,5 +417,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
</where>
</select>
<select id="getMaTypeKeeper" resultType="com.bonus.sgzb.base.domain.MaKeeperUser">
SELECT
mtk.user_id AS userId,
su.user_name AS userName,
su.nick_name AS nickName
FROM
ma_type_keeper mtk
LEFT JOIN sys_user su ON mtk.user_id = su.user_id
GROUP BY
mtk.user_id
</select>
</mapper>