|
@@ -0,0 +1,107 @@
|
|
|
+package com.gyee.frame.service;
|
|
|
+
|
|
|
+import com.gyee.frame.common.base.BaseService;
|
|
|
+import com.gyee.frame.common.support.Convert;
|
|
|
+import com.gyee.frame.mapper.auto.PhotovoltaicStandardPointMapper;
|
|
|
+import com.gyee.frame.model.auto.PhotovoltaicStandardPoint;
|
|
|
+import com.gyee.frame.model.auto.PhotovoltaicStandardPointExample;
|
|
|
+import com.gyee.frame.util.SnowflakeIdWorker;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+
|
|
|
+@Service
|
|
|
+public class PhotovoltaicStandardPointService implements BaseService<PhotovoltaicStandardPoint, PhotovoltaicStandardPointExample> {
|
|
|
+ @Resource
|
|
|
+ private PhotovoltaicStandardPointMapper photovoltaicStandardPointMapper;
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int deleteByPrimaryKey(String ids) {
|
|
|
+
|
|
|
+ List<String> lista = Convert.toListStrArray(ids);
|
|
|
+ PhotovoltaicStandardPointExample example = new PhotovoltaicStandardPointExample();
|
|
|
+ example.createCriteria().andIdIn(lista);
|
|
|
+ return photovoltaicStandardPointMapper.deleteByExample(example);
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public PhotovoltaicStandardPoint selectByPrimaryKey(String id) {
|
|
|
+
|
|
|
+ return null;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int updateByPrimaryKeySelective(PhotovoltaicStandardPoint record) {
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 添加
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public int insertSelective(PhotovoltaicStandardPoint record) {
|
|
|
+
|
|
|
+ //添加雪花主键id
|
|
|
+ record.setId(SnowflakeIdWorker.getUUID());
|
|
|
+
|
|
|
+
|
|
|
+ return photovoltaicStandardPointMapper.insertSelective(record);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int updateByExampleSelective(PhotovoltaicStandardPoint record, PhotovoltaicStandardPointExample example) {
|
|
|
+
|
|
|
+ return photovoltaicStandardPointMapper.updateByExampleSelective(record, example);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int updateByExample(PhotovoltaicStandardPoint record, PhotovoltaicStandardPointExample example) {
|
|
|
+
|
|
|
+ return photovoltaicStandardPointMapper.updateByExample(record, example);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<PhotovoltaicStandardPoint> selectByExample(PhotovoltaicStandardPointExample example) {
|
|
|
+
|
|
|
+ return photovoltaicStandardPointMapper.selectByExample(example);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public long countByExample(PhotovoltaicStandardPointExample example) {
|
|
|
+
|
|
|
+ return photovoltaicStandardPointMapper.countByExample(example);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int deleteByExample(PhotovoltaicStandardPointExample example) {
|
|
|
+
|
|
|
+ return photovoltaicStandardPointMapper.deleteByExample(example);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public List<PhotovoltaicStandardPoint> findAllList() {
|
|
|
+
|
|
|
+ PhotovoltaicStandardPointExample example = new PhotovoltaicStandardPointExample();
|
|
|
+ example.setOrderByClause("id ASC");
|
|
|
+ List<PhotovoltaicStandardPoint> vos = photovoltaicStandardPointMapper.selectByExample(example);
|
|
|
+
|
|
|
+
|
|
|
+ return vos;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|