@@ -855,4 +855,15 @@ public class UserController {
String path = "/"+year+"/"+month+"/"+day;
return path;
}
+
+ /**
+ * 查看签字注释2角色的用户
+ * @return
+ */
+ @ApiLog("签字注师2")
+ @GetMapping("list1")
+ public List<String> list1(){
+ String id= "1681920842985959425";
+ return userService.selectSignatureNaster(id);
+ }
@@ -248,4 +248,7 @@ public interface UserMapper extends BaseMapper<User> {
* @return
*/
Integer getAccountantUserCount(@Param("userId") String userId);
+ List<String> selectSignatureNaster(String id);
@@ -424,4 +424,13 @@
select count(id) from cw_project_report
where del_flag = 0 and (signature_annotator1 = #{userId} or signature_annotator2 = #{userId})
</select>
+ <select id="selectSignatureNaster" resultType="java.lang.String">
+ select
+ us.id
+ from sys_role as role
+ left join sys_user_role as user_role on user_role.role_id= role.id
+ left join sys_user as us on us.id= user_role.user_id
+ where role.id = #{id}
+ </select>
</mapper>
@@ -599,4 +599,10 @@ public class UserService extends ServiceImpl<UserMapper, User> {
public Integer getAccountantUserCount(String userId) {
return userMapper.getAccountantUserCount (userId);
+ public List<String> selectSignatureNaster(String id) {
+ List<String> list= userMapper.selectSignatureNaster(id);
+ return list;
@@ -324,4 +324,6 @@ public class UserDTO extends BaseDTO {
private Integer accountantUserFlag;
+ private List<String> qz2;