fix(seal): 修复印章申请管理中部门名称显示问题
- 修改SQL查询语句,使用GROUP_CONCAT函数处理多部门名称显示
- 添加必要的GROUP BY子句以支持部门名称聚合
- 在库存盘点产品实体类中新增创建人和部门ID字段
| | |
| | | */ |
| | | @ApiModelProperty("系统库存数量") |
| | | private BigDecimal systemQuantity; |
| | | |
| | | |
| | | @ApiModelProperty("创建人") |
| | | private int createUser; |
| | | |
| | | private int deptId; |
| | | } |
| | |
| | | |
| | | |
| | | <select id="listPage" resultType="com.ruoyi.collaborativeApproval.dto.SealApplicationManagementDTO"> |
| | | select sam.*, su.user_name as create_user_name, d.dept_name as department, |
| | | select sam.*, su.user_name as create_user_name, GROUP_CONCAT(d.dept_name SEPARATOR ',') as department, |
| | | su1.nick_name as approveUserName |
| | | from seal_application_management sam |
| | | left join sys_user su on sam.create_user = su.user_id |
| | |
| | | and sam.status = #{ew.status} |
| | | </if> |
| | | </where> |
| | | group by sam.id, sam.application_num, sam.title, sam.status, sam.create_user, sam.approve_user_id, |
| | | sam.create_time, su.user_name, su1.nick_name |
| | | </select> |
| | | </mapper> |