|
@@ -4,12 +4,15 @@ import com.huimv.production.domain.MChildbirthProgressEntity;
|
|
|
import com.huimv.production.repo.MChildbirthProgressEntityRepo;
|
|
|
import com.huimv.production.repo.MChildbirthProgressEntityRepo;
|
|
|
import com.huimv.production.result.Result;
|
|
|
+import com.huimv.production.result.ResultStatus;
|
|
|
import com.huimv.production.service.MChildbirthProgressService;
|
|
|
import com.huimv.production.service.MSowService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @Project : huimv.shiwan
|
|
@@ -65,7 +68,29 @@ public class MChildbirthProgressServiceImpl implements MChildbirthProgressServic
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
+ public Result findAll(String name ,Integer pageNum , Integer pageSize) {
|
|
|
+ try {
|
|
|
+ Map map = new HashMap();
|
|
|
+ int size = childcareEntityRepo.findAll().size() ;
|
|
|
+ Integer startPage = (pageNum-1) * pageSize;
|
|
|
+ List<MChildbirthProgressEntity> all = childcareEntityRepo.findAll(name,startPage,pageSize);
|
|
|
+ map.put("total",size);
|
|
|
+ map.put("totalPageNum",(size + pageSize - 1) / pageSize);
|
|
|
+ map.put("data",all);
|
|
|
+
|
|
|
+ return new Result(10000, ResultStatus.findSuccess,map);
|
|
|
+ }catch (Exception e){
|
|
|
+ return new Result(10001,ResultStatus.findFailed,null);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /* @Override
|
|
|
public Result findAll() {
|
|
|
try {
|
|
|
List<MChildbirthProgressEntity> all = childcareEntityRepo.findAll();
|
|
@@ -73,6 +98,6 @@ public class MChildbirthProgressServiceImpl implements MChildbirthProgressServic
|
|
|
}catch (Exception e){
|
|
|
return new Result(10001,"查询失败",null);
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
}
|