Commit 77d4481160ee702420307e70cc15e03af153ce8c
1 parent
96554e38f1
Exists in
master
修改亿苗儿实体model,dao,service,impl
Showing 5 changed files with 0 additions and 113 deletions
- mainData/src/main/java/com/lymsh/yimiao/main/data/dao/MedAearMapper.java
- mainData/src/main/java/com/lymsh/yimiao/main/data/service/MedAearService.java
- mainData/src/main/java/com/lymsh/yimiao/main/data/service/impl/MedAearServiceImpl.java
- mainData/src/main/java/com/lymsh/yimiao/main/data/service/impl/MedInoculaterecordServiceImpl.java
- webApi/src/main/java/com/lyms/yimiao/web/controller/v1/VaccinesController.java
mainData/src/main/java/com/lymsh/yimiao/main/data/dao/MedAearMapper.java
View file @
77d4481
| 1 | -package com.lymsh.yimiao.main.data.dao; | |
| 2 | - | |
| 3 | -import com.lymsh.yimiao.main.data.model.MedAear; | |
| 4 | -import com.lymsh.yimiao.main.data.model.MedAearQuery; | |
| 5 | - | |
| 6 | -import java.util.List; | |
| 7 | - | |
| 8 | -public interface MedAearMapper { | |
| 9 | - public void addMedAear(MedAear obj); | |
| 10 | - | |
| 11 | - public void updateMedAear(MedAear obj); | |
| 12 | - | |
| 13 | - public void deleteMedAear(Integer id); | |
| 14 | - | |
| 15 | - public MedAear getMedAear(String id); | |
| 16 | - | |
| 17 | - public int queryMedAearCount(MedAearQuery query); | |
| 18 | - | |
| 19 | - public List<MedAear> queryMedAear(MedAearQuery query); | |
| 20 | - | |
| 21 | -} |
mainData/src/main/java/com/lymsh/yimiao/main/data/service/MedAearService.java
View file @
77d4481
| 1 | -package com.lymsh.yimiao.main.data.service; | |
| 2 | - | |
| 3 | -import com.lymsh.yimiao.main.data.model.MedAear; | |
| 4 | -import com.lymsh.yimiao.main.data.model.MedAearQuery; | |
| 5 | - | |
| 6 | -import java.util.List; | |
| 7 | - | |
| 8 | -public interface MedAearService { | |
| 9 | - public void addMedAear(MedAear obj); | |
| 10 | - | |
| 11 | - public void updateMedAear(MedAear obj); | |
| 12 | - | |
| 13 | - public void deleteMedAear(Integer id); | |
| 14 | - | |
| 15 | - public MedAear getMedAear(String id); | |
| 16 | - | |
| 17 | - public int queryMedAearCount(MedAearQuery query); | |
| 18 | - | |
| 19 | - public List<MedAear> queryMedAear(MedAearQuery query); | |
| 20 | - | |
| 21 | -} |
mainData/src/main/java/com/lymsh/yimiao/main/data/service/impl/MedAearServiceImpl.java
View file @
77d4481
| 1 | -package com.lymsh.yimiao.main.data.service.impl; | |
| 2 | - | |
| 3 | -import com.lymsh.yimiao.main.data.dao.MedAearMapper; | |
| 4 | -import com.lymsh.yimiao.main.data.model.MedAear; | |
| 5 | -import com.lymsh.yimiao.main.data.model.MedAearQuery; | |
| 6 | -import com.lymsh.yimiao.main.data.service.MedAearService; | |
| 7 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 8 | -import org.springframework.stereotype.Service; | |
| 9 | - | |
| 10 | -import java.util.Date; | |
| 11 | -import java.util.List; | |
| 12 | - | |
| 13 | -@Service | |
| 14 | -public class MedAearServiceImpl implements MedAearService { | |
| 15 | - | |
| 16 | -@Autowired | |
| 17 | -private MedAearMapper medAearMapper; | |
| 18 | - | |
| 19 | -@Override | |
| 20 | -public void addMedAear(MedAear obj){medAearMapper.addMedAear(obj);} | |
| 21 | -@Override | |
| 22 | -public void updateMedAear(MedAear obj){medAearMapper.updateMedAear(obj);} | |
| 23 | -@Override | |
| 24 | -public void deleteMedAear (Integer id){medAearMapper.deleteMedAear(id);} | |
| 25 | -@Override | |
| 26 | -public MedAear getMedAear (String id){return medAearMapper.getMedAear(id);} | |
| 27 | -@Override | |
| 28 | -public int queryMedAearCount (MedAearQuery query){return medAearMapper.queryMedAearCount(query);} | |
| 29 | -@Override | |
| 30 | -public List<MedAear> queryMedAear (MedAearQuery query){if (query.getNeed() != null) {query.mysqlBuild(medAearMapper.queryMedAearCount(query));}return medAearMapper.queryMedAear(query);} | |
| 31 | - | |
| 32 | -} |
mainData/src/main/java/com/lymsh/yimiao/main/data/service/impl/MedInoculaterecordServiceImpl.java
View file @
77d4481
| 1 | -package com.lymsh.yimiao.main.data.service.impl; | |
| 2 | - | |
| 3 | -import com.lymsh.yimiao.main.data.dao.MedInoculaterecordMapper; | |
| 4 | -import com.lymsh.yimiao.main.data.model.MedInoculaterecord; | |
| 5 | -import com.lymsh.yimiao.main.data.model.MedInoculaterecordQuery; | |
| 6 | -import com.lymsh.yimiao.main.data.service.MedInoculaterecordService; | |
| 7 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 8 | -import org.springframework.stereotype.Service; | |
| 9 | - | |
| 10 | -import java.util.Date; | |
| 11 | -import java.util.List; | |
| 12 | - | |
| 13 | -@Service | |
| 14 | -public class MedInoculaterecordServiceImpl implements MedInoculaterecordService { | |
| 15 | - | |
| 16 | -@Autowired | |
| 17 | -private MedInoculaterecordMapper medInoculaterecordMapper; | |
| 18 | - | |
| 19 | -@Override | |
| 20 | -public void addMedInoculaterecord(MedInoculaterecord obj){medInoculaterecordMapper.addMedInoculaterecord(obj);} | |
| 21 | -@Override | |
| 22 | -public void updateMedInoculaterecord(MedInoculaterecord obj){medInoculaterecordMapper.updateMedInoculaterecord(obj);} | |
| 23 | -@Override | |
| 24 | -public void deleteMedInoculaterecord (Integer id){medInoculaterecordMapper.deleteMedInoculaterecord(id);} | |
| 25 | -@Override | |
| 26 | -public MedInoculaterecord getMedInoculaterecord (String id){return medInoculaterecordMapper.getMedInoculaterecord(id);} | |
| 27 | -@Override | |
| 28 | -public int queryMedInoculaterecordCount (MedInoculaterecordQuery query){return medInoculaterecordMapper.queryMedInoculaterecordCount(query);} | |
| 29 | -@Override | |
| 30 | -public List<MedInoculaterecord> queryMedInoculaterecord (MedInoculaterecordQuery query){if (query.getNeed() != null) {query.mysqlBuild(medInoculaterecordMapper.queryMedInoculaterecordCount(query));}return medInoculaterecordMapper.queryMedInoculaterecord(query);} | |
| 31 | - | |
| 32 | -} |