| | |
| | | @Override |
| | | public R updateYnamic(PartyBuildingComPbDynVO partyCommitteeVO) { |
| | | ComPbDynDO comPbDynDO = new ComPbDynDO(); |
| | | if (partyCommitteeVO.getPublishAt() != null |
| | | && partyCommitteeVO.getPublishAt().getTime() > System.currentTimeMillis()) { |
| | | partyCommitteeVO.setStatus(1); |
| | | } else if (partyCommitteeVO.getPublishAt() != null |
| | | && partyCommitteeVO.getPublishAt().getTime() < System.currentTimeMillis()) { |
| | | partyCommitteeVO.setStatus(2); |
| | | } |
| | | BeanUtils.copyProperties(partyCommitteeVO, comPbDynDO); |
| | | int insert = comPbDynDAO.updateById(comPbDynDO); |
| | | if (insert > 0) { |