Commit 51e25aea authored by mengbali153's avatar mengbali153

非标产值申请

parent 25b50a5e
...@@ -59,11 +59,11 @@ public class NonStandardApplyController { ...@@ -59,11 +59,11 @@ public class NonStandardApplyController {
return BaseResponse.errorMsg("失败!"); return BaseResponse.errorMsg("失败!");
} }
@ApiOperation(value = "获取所有非标产值申请") @ApiOperation(value = "获取当前用户所有的非标产值申请")
@GetMapping("/getList") @GetMapping("/getList")
public BaseResponse getList() { public BaseResponse getList(Integer userId) {
try { try {
return iNonStandardApplyService.getList(); return iNonStandardApplyService.getList(userId);
} catch (Exception e) { } catch (Exception e) {
log.debug("获取所有的非标产值申请{}", e); log.debug("获取所有的非标产值申请{}", e);
} }
......
...@@ -24,7 +24,7 @@ public interface NonStandardApplyMapper extends BaseMapper<NonStandardApply> { ...@@ -24,7 +24,7 @@ public interface NonStandardApplyMapper extends BaseMapper<NonStandardApply> {
List<NonStandardApplyVo> getById(@Param("params") Map<String, Object> params); List<NonStandardApplyVo> getById(@Param("params") Map<String, Object> params);
List<NonStandardApplyVo> getList(QueryWrapper<NonStandardApply> qw); List<NonStandardApplyVo> getList(@Param("params") Map<String, Object> params);
List<Map<String, Object>> exportList(@Param("params") Map<String, Object> params); List<Map<String, Object>> exportList(@Param("params") Map<String, Object> params);
} }
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
select na.*,su.name as name,su.username as account select na.*,su.name as name,su.username as account
from nonstandard_apply na from nonstandard_apply na
LEFT JOIN sys_user su ON su.id = na.user_id LEFT JOIN sys_user su ON su.id = na.user_id
<include refid="where"/>
order by na.id asc order by na.id asc
</select> </select>
......
...@@ -34,7 +34,7 @@ public interface INonStandardApplyService extends IService<NonStandardApply> { ...@@ -34,7 +34,7 @@ public interface INonStandardApplyService extends IService<NonStandardApply> {
* *
* @return List * @return List
*/ */
BaseResponse<List<NonStandardApplyVo>> getList(); BaseResponse<List<NonStandardApplyVo>> getList(Integer userId);
/** /**
* 通过id查询非标产值申请信息 * 通过id查询非标产值申请信息
......
...@@ -52,10 +52,10 @@ public class NonStandardApplyServiceImpl extends ServiceImpl<NonStandardApplyMap ...@@ -52,10 +52,10 @@ public class NonStandardApplyServiceImpl extends ServiceImpl<NonStandardApplyMap
} }
@Override @Override
public BaseResponse<List<NonStandardApplyVo>> getList() { public BaseResponse<List<NonStandardApplyVo>> getList(Integer userId) {
QueryWrapper<NonStandardApply> qw = new QueryWrapper<>(); Map<String, Object> params = new HashMap<>();
qw.ge("status",0); params.put("userId",userId);
List<NonStandardApplyVo> list = nonStandardApplyMapper.getList(qw); List<NonStandardApplyVo> list = nonStandardApplyMapper.getList(params);
return BaseResponse.okData(list); return BaseResponse.okData(list);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment