Commit 33abfc22ad3500d44f59f11acefd800f3f68fc9a
1 parent
537888f933
Exists in
master
and in
8 other branches
c
Showing 12 changed files with 58 additions and 74 deletions
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/BasicConfigServiceTest.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/AssayConfigDao.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/CommunityConfigDao.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/ReferConfigDao.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/AssayConfigDaoImpl.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/CommunityConfigDaoImpl.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/ReferConfigDaoImpl.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AssayConfigService.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/CommunityConfigService.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/ReferConfigService.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CommunityConfigController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/ReferConfigController.java
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/BasicConfigServiceTest.java
View file @
33abfc2
| ... | ... | @@ -2,13 +2,9 @@ |
| 2 | 2 | |
| 3 | 3 | import java.text.SimpleDateFormat; |
| 4 | 4 | import java.util.Date; |
| 5 | -import java.util.List; | |
| 6 | 5 | |
| 7 | 6 | import org.springframework.context.ApplicationContext; |
| 8 | 7 | import org.springframework.context.support.ClassPathXmlApplicationContext; |
| 9 | -import org.springframework.data.mongodb.core.MongoTemplate; | |
| 10 | -import org.springframework.data.mongodb.core.query.Criteria; | |
| 11 | -import org.springframework.data.mongodb.core.query.Query; | |
| 12 | 8 | |
| 13 | 9 | import com.lyms.platform.biz.service.BabyService; |
| 14 | 10 | import com.lyms.platform.biz.service.PuerperaService; |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/AssayConfigDao.java
View file @
33abfc2
| 1 | 1 | package com.lyms.platform.biz.dal; |
| 2 | 2 | |
| 3 | 3 | |
| 4 | +import java.util.List; | |
| 5 | + | |
| 4 | 6 | import com.lyms.platform.common.dao.operator.MongoQuery; |
| 5 | -import com.lyms.platform.params.AssayConfigParam; | |
| 6 | 7 | import com.lyms.platform.pojo.AssayConfig; |
| 7 | - | |
| 8 | -import java.util.List; | |
| 9 | 8 | |
| 10 | 9 | public interface AssayConfigDao { |
| 11 | 10 | List<AssayConfig> query(MongoQuery query) ; |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/CommunityConfigDao.java
View file @
33abfc2
| 1 | 1 | package com.lyms.platform.biz.dal; |
| 2 | 2 | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 3 | 5 | import com.lyms.platform.common.dao.operator.MongoQuery; |
| 4 | 6 | import com.lyms.platform.pojo.CommunityConfig; |
| 5 | -import com.lyms.platform.pojo.ReferValue; | |
| 6 | - | |
| 7 | -import java.util.List; | |
| 8 | 7 | |
| 9 | 8 | /** |
| 10 | 9 | * Created by Zhang.Rui on 2016/3/17. |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/ReferConfigDao.java
View file @
33abfc2
| 1 | 1 | package com.lyms.platform.biz.dal; |
| 2 | 2 | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 3 | 5 | import com.lyms.platform.common.dao.operator.MongoQuery; |
| 4 | -import com.lyms.platform.common.result.BaseListResponse; | |
| 5 | 6 | import com.lyms.platform.pojo.ReferValue; |
| 6 | - | |
| 7 | -import java.util.List; | |
| 8 | 7 | |
| 9 | 8 | /** |
| 10 | 9 | * Created by Zhang.Rui on 2016/3/17. |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/AssayConfigDaoImpl.java
View file @
33abfc2
| 1 | 1 | package com.lyms.platform.biz.dal.impl; |
| 2 | 2 | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +import org.springframework.stereotype.Repository; | |
| 6 | + | |
| 3 | 7 | import com.lyms.platform.biz.dal.AssayConfigDao; |
| 4 | -import com.lyms.platform.biz.dal.IBasicConfigDao; | |
| 5 | 8 | import com.lyms.platform.common.dao.BaseMongoDAOImpl; |
| 6 | -import com.lyms.platform.common.dao.operator.MongoCondition; | |
| 7 | -import com.lyms.platform.common.dao.operator.MongoOper; | |
| 8 | 9 | import com.lyms.platform.common.dao.operator.MongoQuery; |
| 9 | -import com.lyms.platform.common.dao.operator.Page; | |
| 10 | -import com.lyms.platform.params.AssayConfigParam; | |
| 11 | 10 | import com.lyms.platform.pojo.AssayConfig; |
| 12 | -import com.lyms.platform.pojo.BasicConfig; | |
| 13 | -import org.springframework.stereotype.Repository; | |
| 14 | - | |
| 15 | -import java.util.List; | |
| 16 | 11 | |
| 17 | 12 | @Repository("assayConfigDao") |
| 18 | 13 | public class AssayConfigDaoImpl extends BaseMongoDAOImpl<AssayConfig> implements AssayConfigDao { |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/CommunityConfigDaoImpl.java
View file @
33abfc2
| 1 | 1 | package com.lyms.platform.biz.dal.impl; |
| 2 | 2 | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +import org.springframework.stereotype.Repository; | |
| 6 | + | |
| 3 | 7 | import com.lyms.platform.biz.dal.CommunityConfigDao; |
| 4 | -import com.lyms.platform.biz.dal.ReferConfigDao; | |
| 5 | 8 | import com.lyms.platform.common.dao.BaseMongoDAOImpl; |
| 6 | 9 | import com.lyms.platform.common.dao.operator.MongoQuery; |
| 7 | 10 | import com.lyms.platform.pojo.CommunityConfig; |
| 8 | -import com.lyms.platform.pojo.ReferValue; | |
| 9 | -import org.springframework.stereotype.Repository; | |
| 10 | - | |
| 11 | -import java.util.List; | |
| 12 | 11 | |
| 13 | 12 | /** |
| 14 | 13 | * Created by Zhang.Rui on 2016/3/17. |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/ReferConfigDaoImpl.java
View file @
33abfc2
| 1 | 1 | package com.lyms.platform.biz.dal.impl; |
| 2 | 2 | |
| 3 | -import com.lyms.platform.biz.dal.IBasicConfigDao; | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +import org.springframework.stereotype.Repository; | |
| 6 | + | |
| 4 | 7 | import com.lyms.platform.biz.dal.ReferConfigDao; |
| 5 | 8 | import com.lyms.platform.common.dao.BaseMongoDAOImpl; |
| 6 | 9 | import com.lyms.platform.common.dao.operator.MongoQuery; |
| 7 | -import com.lyms.platform.common.dao.operator.Page; | |
| 8 | -import com.lyms.platform.common.result.BaseListResponse; | |
| 9 | -import com.lyms.platform.pojo.BasicConfig; | |
| 10 | 10 | import com.lyms.platform.pojo.ReferValue; |
| 11 | -import org.springframework.stereotype.Repository; | |
| 12 | 11 | |
| 13 | -import java.util.List; | |
| 14 | - | |
| 15 | 12 | /** |
| 16 | 13 | * Created by Zhang.Rui on 2016/3/17. |
| 17 | 14 | */ |
| ... | ... | @@ -26,7 +23,6 @@ |
| 26 | 23 | |
| 27 | 24 | @Override |
| 28 | 25 | public void updateRefer(MongoQuery query, ReferValue referValue) { |
| 29 | - List<ReferValue> list = find(query.convertToMongoQuery()); | |
| 30 | 26 | update(query.convertToMongoQuery(), referValue); |
| 31 | 27 | } |
| 32 | 28 |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AssayConfigService.java
View file @
33abfc2
| 1 | 1 | package com.lyms.platform.biz.service; |
| 2 | 2 | |
| 3 | 3 | |
| 4 | +import java.util.List; | |
| 5 | + | |
| 6 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 7 | +import org.springframework.stereotype.Service; | |
| 8 | + | |
| 4 | 9 | import com.lyms.platform.biz.dal.AssayConfigDao; |
| 5 | 10 | import com.lyms.platform.common.dao.operator.MongoCondition; |
| 6 | 11 | import com.lyms.platform.common.dao.operator.MongoOper; |
| 7 | 12 | import com.lyms.platform.common.dao.operator.MongoQuery; |
| 8 | 13 | import com.lyms.platform.params.AssayConfigParam; |
| 9 | 14 | import com.lyms.platform.pojo.AssayConfig; |
| 10 | -import com.mongodb.Mongo; | |
| 11 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 12 | -import org.springframework.stereotype.Service; | |
| 13 | -; | |
| 14 | - | |
| 15 | -import java.util.List; | |
| 16 | 15 | |
| 17 | 16 | //ๅ้ช้กน้ ็ฝฎ |
| 18 | 17 | @Service("AssayConfigService") |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/CommunityConfigService.java
View file @
33abfc2
| 1 | 1 | package com.lyms.platform.biz.service; |
| 2 | 2 | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 6 | +import org.springframework.stereotype.Service; | |
| 7 | + | |
| 3 | 8 | import com.lyms.platform.biz.dal.CommunityConfigDao; |
| 4 | -import com.lyms.platform.common.constants.ErrorCodeConstants; | |
| 5 | 9 | import com.lyms.platform.common.dao.operator.MongoCondition; |
| 6 | 10 | import com.lyms.platform.common.dao.operator.MongoOper; |
| 7 | -import com.lyms.platform.common.dao.operator.MongoQuery; | |
| 8 | 11 | import com.lyms.platform.common.enums.YnEnums; |
| 9 | -import com.lyms.platform.common.result.BaseResponse; | |
| 10 | 12 | import com.lyms.platform.pojo.CommunityConfig; |
| 11 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 12 | -import org.springframework.stereotype.Service; | |
| 13 | -import org.springframework.web.bind.annotation.RequestBody; | |
| 14 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 15 | -import org.springframework.web.bind.annotation.RequestMethod; | |
| 16 | -import org.springframework.web.bind.annotation.ResponseBody; | |
| 17 | - | |
| 18 | -import javax.validation.Valid; | |
| 19 | -import java.util.List; | |
| 20 | 13 | |
| 21 | 14 | /** |
| 22 | 15 | * Created by Zhang.Rui on 2016/3/18. |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/ReferConfigService.java
View file @
33abfc2
| 1 | 1 | package com.lyms.platform.biz.service; |
| 2 | 2 | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 6 | +import org.springframework.stereotype.Service; | |
| 7 | + | |
| 3 | 8 | import com.lyms.platform.biz.dal.ReferConfigDao; |
| 4 | 9 | import com.lyms.platform.common.dao.operator.MongoCondition; |
| 5 | 10 | import com.lyms.platform.common.dao.operator.MongoOper; |
| 6 | -import com.lyms.platform.common.dao.operator.MongoQuery; | |
| 7 | 11 | import com.lyms.platform.common.enums.YnEnums; |
| 8 | -import com.lyms.platform.common.result.BaseListResponse; | |
| 9 | 12 | import com.lyms.platform.pojo.ReferValue; |
| 10 | 13 | import com.lyms.platform.query.ReferConfigQuery; |
| 11 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 12 | -import org.springframework.stereotype.Service; | |
| 13 | - | |
| 14 | -import java.util.List; | |
| 15 | 14 | |
| 16 | 15 | /** |
| 17 | 16 | * Created by Zhang.Rui on 2016/3/17. |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CommunityConfigController.java
View file @
33abfc2
| 1 | 1 | package com.lyms.platform.operate.web.controller; |
| 2 | 2 | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +import javax.validation.Valid; | |
| 6 | + | |
| 7 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 8 | +import org.springframework.stereotype.Controller; | |
| 9 | +import org.springframework.web.bind.annotation.PathVariable; | |
| 10 | +import org.springframework.web.bind.annotation.RequestBody; | |
| 11 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 12 | +import org.springframework.web.bind.annotation.RequestMethod; | |
| 13 | +import org.springframework.web.bind.annotation.RequestParam; | |
| 14 | +import org.springframework.web.bind.annotation.ResponseBody; | |
| 15 | + | |
| 3 | 16 | import com.lyms.platform.biz.service.CommunityConfigService; |
| 4 | 17 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
| 5 | -import com.lyms.platform.common.enums.YnEnums; | |
| 6 | 18 | import com.lyms.platform.common.result.BaseListResponse; |
| 7 | 19 | import com.lyms.platform.common.result.BaseResponse; |
| 8 | 20 | import com.lyms.platform.operate.web.request.CommunityConfigRequest; |
| 9 | 21 | import com.lyms.platform.pojo.CommunityConfig; |
| 10 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 11 | -import org.springframework.stereotype.Controller; | |
| 12 | -import org.springframework.web.bind.annotation.*; | |
| 13 | - | |
| 14 | -import javax.validation.Valid; | |
| 15 | -import java.util.List; | |
| 16 | 22 | |
| 17 | 23 | /** |
| 18 | 24 | * Created by Zhang.Rui on 2016/3/18. |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/ReferConfigController.java
View file @
33abfc2
| 1 | 1 | package com.lyms.platform.operate.web.controller; |
| 2 | 2 | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +import javax.validation.Valid; | |
| 6 | + | |
| 7 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 8 | +import org.springframework.stereotype.Controller; | |
| 9 | +import org.springframework.web.bind.annotation.PathVariable; | |
| 10 | +import org.springframework.web.bind.annotation.RequestBody; | |
| 11 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 12 | +import org.springframework.web.bind.annotation.RequestMethod; | |
| 13 | +import org.springframework.web.bind.annotation.ResponseBody; | |
| 14 | + | |
| 3 | 15 | import com.lyms.platform.biz.service.AssayConfigService; |
| 4 | 16 | import com.lyms.platform.biz.service.ReferConfigService; |
| 5 | 17 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
| 6 | 18 | import com.lyms.platform.common.result.BaseListResponse; |
| 7 | 19 | import com.lyms.platform.common.result.BaseResponse; |
| 8 | -import com.lyms.platform.params.AssayConfigParam; | |
| 9 | -import com.lyms.platform.pojo.AssayConfig; | |
| 10 | 20 | import com.lyms.platform.pojo.ReferValue; |
| 11 | 21 | import com.lyms.platform.query.ReferConfigQuery; |
| 12 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 13 | -import org.springframework.stereotype.Controller; | |
| 14 | -import org.springframework.web.bind.annotation.*; | |
| 15 | - | |
| 16 | -import javax.validation.Valid; | |
| 17 | -import java.util.List; | |
| 18 | 22 | |
| 19 | 23 | /** |
| 20 | 24 | * Created by Zhang.Rui on 2016/3/17. |