publish 0.9.6

This commit is contained in:
曾文豪
2023-03-31 16:33:21 +08:00
parent 68781d4685
commit e19f27f597
14 changed files with 27 additions and 24 deletions

View File

@@ -72,7 +72,7 @@ public class JobController {
*/
@GetMapping("/func/rx")
public ApiResp<List<String>> funcRx(@Valid IdDTO dto) {
List<String> list = coreJobService.getBaseMapper().getJobFunc(dto.getId());
List<String> list = coreJobService.getBaseMapper().getJobFunc(dto.getId(), null);
return ApiResp.respOK(list);
}
@@ -110,7 +110,7 @@ public class JobController {
public ApiResp<List<JobUserOwner>> userOwner() {
List<JobUserOwner> coreJobUsers = coreJobService.getJobUserMapper().list(TsTokenConfig.get().getId());
coreJobUsers.forEach(it -> {
List<String> list = coreJobService.getBaseMapper().getJobFunc(it.getJobId());
List<String> list = coreJobService.getBaseMapper().getJobFunc(it.getJobId(), 1);
it.setPoints(list);
});
return ApiResp.respOK(coreJobUsers);

View File

@@ -31,6 +31,6 @@ public interface CoreJobMapper extends BaseMapper<CoreJob> {
* @param jobId
* @return
*/
List<String> getJobFunc(@Param("jobId") String jobId);
List<String> getJobFunc(@Param("jobId") String jobId, @Param("isUsed") Integer isUsed);
}