| @@ -27,16 +27,16 @@ public class WxFloatingLayerServiceImpl implements WxFloatingLayerService { | |||||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | private final Logger logger = LoggerFactory.getLogger(this.getClass()); | ||||
| @Autowired | @Autowired | ||||
| WxFloatingLayerMapper WxFloatingLayerMapper; | |||||
| WxFloatingLayerMapper wxFloatingLayerMapper; | |||||
| @Override | @Override | ||||
| public PageInfo<WxFloatingLayer> listAsPage(WxFloatingLayer record, Integer pageIndex, Integer pageSize) { | public PageInfo<WxFloatingLayer> listAsPage(WxFloatingLayer record, Integer pageIndex, Integer pageSize) { | ||||
| return PageHelper.startPage(pageIndex, pageSize).doSelectPageInfo(() -> WxFloatingLayerMapper.findList(record)); | |||||
| return PageHelper.startPage(pageIndex, pageSize).doSelectPageInfo(() -> wxFloatingLayerMapper.findList(record)); | |||||
| } | } | ||||
| @Override | @Override | ||||
| public WxFloatingLayer getById(Long id) { | public WxFloatingLayer getById(Long id) { | ||||
| return WxFloatingLayerMapper.selectById(id); | |||||
| return wxFloatingLayerMapper.selectById(id); | |||||
| } | } | ||||
| @Transactional(propagation = Propagation.REQUIRED, rollbackFor = {Exception.class}) | @Transactional(propagation = Propagation.REQUIRED, rollbackFor = {Exception.class}) | ||||
| @@ -54,10 +54,10 @@ public class WxFloatingLayerServiceImpl implements WxFloatingLayerService { | |||||
| wxFloatingLayer.setId(idWorker.nextId()); | wxFloatingLayer.setId(idWorker.nextId()); | ||||
| wxFloatingLayer.setCreateTime(date); | wxFloatingLayer.setCreateTime(date); | ||||
| wxFloatingLayer.setUpdateTime(date); | wxFloatingLayer.setUpdateTime(date); | ||||
| WxFloatingLayerMapper.insert(wxFloatingLayer); | |||||
| wxFloatingLayerMapper.insert(wxFloatingLayer); | |||||
| } else { | } else { | ||||
| wxFloatingLayer.setUpdateTime(date); | wxFloatingLayer.setUpdateTime(date); | ||||
| WxFloatingLayerMapper.updateById(wxFloatingLayer); | |||||
| wxFloatingLayerMapper.updateById(wxFloatingLayer); | |||||
| } | } | ||||
| return new ResultData(Result.SUCCESS, "操作成功"); | return new ResultData(Result.SUCCESS, "操作成功"); | ||||
| } | } | ||||