| | |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | |
| | | @GetMapping("/getCheckPositionNo") |
| | | @ApiOperation("PC端查看未审批的申请") |
| | | public AjaxResult getCheckPositionNo() { |
| | | String commanderId = SecurityUtils.getUserId(); |
| | | try{ |
| | | List<Map<String,Object>> result = ardAppApplicationService.getCheckPositionNo(commanderId); |
| | | return AjaxResult.success(result); |
| | | }catch(Exception e){ |
| | | e.printStackTrace(); |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | } |
| | |
| | | public int updateSoilderCheckByCommanderIdAndSoilderIdAndType(@Param("soilderId")String soilderId,@Param("commanderId")String commanderId,@Param("applicationType")String applicationType); |
| | | |
| | | public Map<String,Object> selectSYCarApplicationByPCIdAndSoilderId(@Param("commanderId")String commanderId,@Param("usersId")String usersId); |
| | | |
| | | public List<Map<String,Object>> selectArdAppApplicationByCommanderIdNoCheck(@Param("commanderId")String commanderId); |
| | | } |
| | |
| | | public Map<String,List<Map<String,Object>>> getCheckPositionOwn(String soilderId); |
| | | |
| | | public int approvalCheckPositionOwn(String soilderId,Map<String,String> para); |
| | | |
| | | public List<Map<String,Object>> getCheckPositionNo(String commanderId); |
| | | } |
| | |
| | | int result = ardAppApplicationMapper.updateSoilderCheckByCommanderIdAndSoilderIdAndType(soilderId,commanderId,applicationType); |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> getCheckPositionNo(String commanderId) { |
| | | List<Map<String,Object>> ardAppApplicationList = ardAppApplicationMapper.selectArdAppApplicationByCommanderIdNoCheck(commanderId); |
| | | return ardAppApplicationList; |
| | | } |
| | | } |
| | |
| | | inner join sys_user su on aaa.soilder_id = su.user_id |
| | | where commander_id = #{commanderId} and soilder_id = #{usersId} and application_type = 'SYCar' |
| | | </select> |
| | | |
| | | <select id="selectArdAppApplicationByCommanderIdNoCheck" parameterType="java.lang.String" resultType="java.util.Map"> |
| | | select aaa.soilder_id as "soilderId",aaa.commander_id as "commanderId", |
| | | aaa.reason,aaa.begin,aaa.state,aaa.application_type as "applicationType", |
| | | su.user_name as "userName",su.nick_name as "nickName" from ard_app_application aaa |
| | | inner join sys_user su on aaa.soilder_id = su.user_id |
| | | where commander_id = #{commanderId} |
| | | </select> |
| | | </mapper> |