| | |
| | | return R.fail("该值班表不存在"); |
| | | } |
| | | ComSwRotaDO checkCreditCode = comSwRotaDAO.selectOne(new QueryWrapper<ComSwRotaDO>().lambda().eq(ComSwRotaDO::getRotaDate, comSwRotaSaveDTO.getRotaDate())); |
| | | if (null != checkCreditCode && comSwRotaDO.getId() != checkCreditCode.getId()) { |
| | | if (null != checkCreditCode && !comSwRotaDO.getId().equals(checkCreditCode.getId())) { |
| | | return R.fail("该值班表已存在,值班日期重复"); |
| | | } |
| | | BeanUtils.copyProperties(comSwRotaSaveDTO, comSwRotaDO); |
| | |
| | | }catch (ParseException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | if (comSwRotaDO == null) { |
| | | return R.fail(rotaDate + "值班表不存在"); |
| | | } |
| | | // if (comSwRotaDO == null) { |
| | | // return R.fail(rotaDate + "值班表不存在"); |
| | | // } |
| | | List<ComSwRotaPersonVO> rotaPersons = new ArrayList<>(); |
| | | if (null != comSwRotaDO){ |
| | | String rotaPerson = comSwRotaDO.getRotaPerson(); |
| | |
| | | } catch (ParseException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | if (comSwRotaDO == null) { |
| | | return R.fail(rotaDate + "值班表不存在"); |
| | | } |
| | | // if (comSwRotaDO == null) { |
| | | // return R.fail(rotaDate + "值班表不存在"); |
| | | // } |
| | | List<ComSwRotaPersonVO> rotaLeaders = new ArrayList<>(); |
| | | if (null != comSwRotaDO){ |
| | | String rotaPerson = comSwRotaDO.getRotaLeader(); |