|
@@ -0,0 +1,64 @@
|
|
|
+package com.tianhu.system.service.impl;
|
|
|
+
|
|
|
+import com.tianhu.system.domain.ZcHandlerChange;
|
|
|
+import com.tianhu.system.mapper.ZcHandlerChangeMapper;
|
|
|
+import com.tianhu.system.service.IZcHandlerChangeService;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.transaction.annotation.Propagation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import com.keao.tianhu.starter.mybatis.plus.entity.QueryRequest;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * ClassName: ZcHandlerChangeServiceImpl<br>
|
|
|
+ * Description: IZcHandlerChangeService实现 <br>
|
|
|
+ * Company: keao
|
|
|
+ *
|
|
|
+ * @author cuixq
|
|
|
+ * @version v1.0.0 2021-09-15 cuixq 由Generator自动创建
|
|
|
+ */
|
|
|
+@Service
|
|
|
+@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
|
|
|
+public class ZcHandlerChangeServiceImpl extends ServiceImpl<ZcHandlerChangeMapper, ZcHandlerChange> implements IZcHandlerChangeService {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ZcHandlerChangeMapper zcHandlerChangeMapper;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public IPage<ZcHandlerChange> findZcHandlerChanges(QueryRequest request, LambdaQueryWrapper<ZcHandlerChange> wrapper) {
|
|
|
+ Page<ZcHandlerChange> page = new Page<>(request.getPageNum(), request.getPageSize());
|
|
|
+ return this.page(page, wrapper);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<ZcHandlerChange> findZcHandlerChanges(LambdaQueryWrapper<ZcHandlerChange> wrapper) {
|
|
|
+ return this.list(wrapper);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public void createZcHandlerChange(ZcHandlerChange zcHandlerChange) {
|
|
|
+ this.save(zcHandlerChange);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public void updateZcHandlerChange(ZcHandlerChange zcHandlerChange) {
|
|
|
+ this.saveOrUpdate(zcHandlerChange);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public void deleteZcHandlerChange(LambdaQueryWrapper<ZcHandlerChange> wrapper) {
|
|
|
+ this.remove(wrapper);
|
|
|
+ }
|
|
|
+}
|