|
@@ -11,6 +11,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.gyee.common.model.StringUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import javax.xml.crypto.Data;
|
|
|
import java.util.Arrays;
|
|
|
|
|
|
/**
|
|
@@ -25,7 +26,7 @@ import java.util.Arrays;
|
|
|
public class IndicatorsServiceImpl extends ServiceImpl<IndicatorsMapper, Indicators> implements IIndicatorsService {
|
|
|
|
|
|
@Override
|
|
|
- public IPage<Indicators> getList(String id, String stationid, String stationname, String kay, String pageNum, String pageSize) {
|
|
|
+ public IPage<Indicators> getList(String id, String stationid, String stationname, String kay, Data createtime, String pageNum, String pageSize) {
|
|
|
QueryWrapper<Indicators> qw = new QueryWrapper<>();
|
|
|
|
|
|
if (StringUtils.isNotEmpty(id)){
|
|
@@ -59,7 +60,14 @@ public class IndicatorsServiceImpl extends ServiceImpl<IndicatorsMapper, Indicat
|
|
|
|
|
|
@Override
|
|
|
public boolean addOrUpdate(Indicators indicators) {
|
|
|
- boolean b = this.saveOrUpdate(indicators);
|
|
|
+// boolean b = this.saveOrUpdate(indicators);
|
|
|
+ boolean b = false;
|
|
|
+ if(null==indicators.getId()){
|
|
|
+ b = this.save(indicators);
|
|
|
+ }else{
|
|
|
+ b= this.updateById(indicators);
|
|
|
+ }
|
|
|
+
|
|
|
return b;
|
|
|
}
|
|
|
|