Commit c962a47717c752a05737e323267da6d2c138bf07
1 parent
ba91962a9d
Exists in
master
aaa
Showing 11 changed files with 119 additions and 34 deletions
- .idea/copyright/profiles_settings.xml
- .idea/scopes/scope_settings.xml
- mainData/src/main/java/com/lymsh/yimiao/main/data/dao/MedInoculateOrderMapper.java
- mainData/src/main/java/com/lymsh/yimiao/main/data/dao/MedInoculateorderMapper.java
- mainData/src/main/java/com/lymsh/yimiao/main/data/model/MedInoculateOrderQuery.java
- mainData/src/main/java/com/lymsh/yimiao/main/data/model/MedInoculateorderQuery.java
- mainData/src/main/java/com/lymsh/yimiao/main/data/service/MedInoculateOrderService.java
- mainData/src/main/java/com/lymsh/yimiao/main/data/service/MedInoculateorderService.java
- mainData/src/main/java/com/lymsh/yimiao/main/data/service/impl/MedInoculateOrderServiceImpl.java
- mainData/src/main/java/com/lymsh/yimiao/main/data/service/impl/MedInoculateorderServiceImpl.java
- mainData/src/main/resources/mainOrm/MedInoculateorder.xml
.idea/copyright/profiles_settings.xml
View file @
c962a47
.idea/scopes/scope_settings.xml
View file @
c962a47
mainData/src/main/java/com/lymsh/yimiao/main/data/dao/MedInoculateOrderMapper.java
View file @
c962a47
| 1 | +package com.lymsh.yimiao.main.data.dao; | |
| 2 | + | |
| 3 | +import com.lymsh.yimiao.main.data.model.MedInoculateOrder; | |
| 4 | +import com.lymsh.yimiao.main.data.model.MedInoculateOrderQuery; | |
| 5 | + | |
| 6 | +import java.util.List; | |
| 7 | + | |
| 8 | +public interface MedInoculateOrderMapper { | |
| 9 | + public void addMedInoculateOrder(MedInoculateOrder obj); | |
| 10 | + | |
| 11 | + public void updateMedInoculateOrder(MedInoculateOrder obj); | |
| 12 | + | |
| 13 | + public void deleteMedInoculateOrder(Integer id); | |
| 14 | + | |
| 15 | + public MedInoculateOrder getMedInoculateOrder(String id); | |
| 16 | + | |
| 17 | + public int queryMedInoculateOrderCount(MedInoculateOrderQuery query); | |
| 18 | + | |
| 19 | + public List<MedInoculateOrder> queryMedInoculateOrder(MedInoculateOrderQuery query); | |
| 20 | + | |
| 21 | +} | 
mainData/src/main/java/com/lymsh/yimiao/main/data/dao/MedInoculateorderMapper.java
View file @
c962a47
| ... | ... | @@ -5,18 +5,18 @@ | 
| 5 | 5 | |
| 6 | 6 | import java.util.List; | 
| 7 | 7 | |
| 8 | -public interface MedInoculateorderMapper { | |
| 9 | - public void addMedInoculateorder(MedInoculateOrder obj); | |
| 8 | +public interface MedInoculateOrderMapper { | |
| 9 | + public void addMedInoculateOrder(MedInoculateOrder obj); | |
| 10 | 10 | |
| 11 | - public void updateMedInoculateorder(MedInoculateOrder obj); | |
| 11 | + public void updateMedInoculateOrder(MedInoculateOrder obj); | |
| 12 | 12 | |
| 13 | - public void deleteMedInoculateorder(Integer id); | |
| 13 | + public void deleteMedInoculateOrder(Integer id); | |
| 14 | 14 | |
| 15 | - public MedInoculateOrder getMedInoculateorder(String id); | |
| 15 | + public MedInoculateOrder getMedInoculateOrder(String id); | |
| 16 | 16 | |
| 17 | - public int queryMedInoculateorderCount(MedInoculateOrderQuery query); | |
| 17 | + public int queryMedInoculateOrderCount(MedInoculateOrderQuery query); | |
| 18 | 18 | |
| 19 | - public List<MedInoculateOrder> queryMedInoculateorder(MedInoculateOrderQuery query); | |
| 19 | + public List<MedInoculateOrder> queryMedInoculateOrder(MedInoculateOrderQuery query); | |
| 20 | 20 | |
| 21 | 21 | } | 
mainData/src/main/java/com/lymsh/yimiao/main/data/model/MedInoculateOrderQuery.java
View file @
c962a47
mainData/src/main/java/com/lymsh/yimiao/main/data/model/MedInoculateorderQuery.java
View file @
c962a47
mainData/src/main/java/com/lymsh/yimiao/main/data/service/MedInoculateOrderService.java
View file @
c962a47
| 1 | +package com.lymsh.yimiao.main.data.service; | |
| 2 | + | |
| 3 | +import com.lymsh.yimiao.main.data.model.MedInoculateOrder; | |
| 4 | +import com.lymsh.yimiao.main.data.model.MedInoculateOrderQuery; | |
| 5 | + | |
| 6 | +import java.util.List; | |
| 7 | + | |
| 8 | +public interface MedInoculateOrderService { | |
| 9 | + public void addMedInoculateOrder(MedInoculateOrder obj); | |
| 10 | + | |
| 11 | + public void updateMedInoculateOrder(MedInoculateOrder obj); | |
| 12 | + | |
| 13 | + public void deleteMedInoculateOrder(Integer id); | |
| 14 | + | |
| 15 | + public MedInoculateOrder getMedInoculateOrder(String id); | |
| 16 | + | |
| 17 | + public int queryMedInoculateOrderCount(MedInoculateOrderQuery query); | |
| 18 | + | |
| 19 | + public List<MedInoculateOrder> queryMedInoculateOrder(MedInoculateOrderQuery query); | |
| 20 | + | |
| 21 | +} | 
mainData/src/main/java/com/lymsh/yimiao/main/data/service/MedInoculateorderService.java
View file @
c962a47
| ... | ... | @@ -5,18 +5,18 @@ | 
| 5 | 5 | |
| 6 | 6 | import java.util.List; | 
| 7 | 7 | |
| 8 | -public interface MedInoculateorderService { | |
| 9 | - public void addMedInoculateorder(MedInoculateOrder obj); | |
| 8 | +public interface MedInoculateOrderService { | |
| 9 | + public void addMedInoculateOrder(MedInoculateOrder obj); | |
| 10 | 10 | |
| 11 | - public void updateMedInoculateorder(MedInoculateOrder obj); | |
| 11 | + public void updateMedInoculateOrder(MedInoculateOrder obj); | |
| 12 | 12 | |
| 13 | - public void deleteMedInoculateorder(Integer id); | |
| 13 | + public void deleteMedInoculateOrder(Integer id); | |
| 14 | 14 | |
| 15 | - public MedInoculateOrder getMedInoculateorder(String id); | |
| 15 | + public MedInoculateOrder getMedInoculateOrder(String id); | |
| 16 | 16 | |
| 17 | - public int queryMedInoculateorderCount(MedInoculateOrderQuery query); | |
| 17 | + public int queryMedInoculateOrderCount(MedInoculateOrderQuery query); | |
| 18 | 18 | |
| 19 | - public List<MedInoculateOrder> queryMedInoculateorder(MedInoculateOrderQuery query); | |
| 19 | + public List<MedInoculateOrder> queryMedInoculateOrder(MedInoculateOrderQuery query); | |
| 20 | 20 | |
| 21 | 21 | } | 
mainData/src/main/java/com/lymsh/yimiao/main/data/service/impl/MedInoculateOrderServiceImpl.java
View file @
c962a47
| 1 | +package com.lymsh.yimiao.main.data.service.impl; | |
| 2 | + | |
| 3 | +import com.lymsh.yimiao.main.data.dao.MedInoculateOrderMapper; | |
| 4 | +import com.lymsh.yimiao.main.data.model.MedInoculateOrder; | |
| 5 | +import com.lymsh.yimiao.main.data.model.MedInoculateOrderQuery; | |
| 6 | +import com.lymsh.yimiao.main.data.service.MedInoculateOrderService; | |
| 7 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 8 | +import org.springframework.stereotype.Service; | |
| 9 | + | |
| 10 | +import java.util.List; | |
| 11 | + | |
| 12 | +@Service | |
| 13 | +public class MedInoculateOrderServiceImpl implements MedInoculateOrderService { | |
| 14 | + | |
| 15 | +@Autowired | |
| 16 | +private MedInoculateOrderMapper medInoculateorderMapper; | |
| 17 | + | |
| 18 | +@Override | |
| 19 | +public void addMedInoculateOrder(MedInoculateOrder obj){medInoculateorderMapper.addMedInoculateOrder(obj);} | |
| 20 | +@Override | |
| 21 | +public void updateMedInoculateOrder(MedInoculateOrder obj){medInoculateorderMapper.updateMedInoculateOrder(obj);} | |
| 22 | +@Override | |
| 23 | +public void deleteMedInoculateOrder (Integer id){medInoculateorderMapper.deleteMedInoculateOrder(id);} | |
| 24 | +@Override | |
| 25 | +public MedInoculateOrder getMedInoculateOrder (String id){return medInoculateorderMapper.getMedInoculateOrder(id);} | |
| 26 | +@Override | |
| 27 | +public int queryMedInoculateOrderCount (MedInoculateOrderQuery query){return medInoculateorderMapper.queryMedInoculateOrderCount(query);} | |
| 28 | +@Override | |
| 29 | +public List<MedInoculateOrder> queryMedInoculateOrder (MedInoculateOrderQuery query){if (query.getNeed() != null) {query.mysqlBuild(medInoculateorderMapper.queryMedInoculateOrderCount(query));}return medInoculateorderMapper.queryMedInoculateOrder(query);} | |
| 30 | + | |
| 31 | +} | 
mainData/src/main/java/com/lymsh/yimiao/main/data/service/impl/MedInoculateorderServiceImpl.java
View file @
c962a47
| 1 | 1 | package com.lymsh.yimiao.main.data.service.impl; | 
| 2 | 2 | |
| 3 | -import com.lymsh.yimiao.main.data.dao.MedInoculateorderMapper; | |
| 3 | +import com.lymsh.yimiao.main.data.dao.MedInoculateOrderMapper; | |
| 4 | 4 | import com.lymsh.yimiao.main.data.model.MedInoculateOrder; | 
| 5 | 5 | import com.lymsh.yimiao.main.data.model.MedInoculateOrderQuery; | 
| 6 | -import com.lymsh.yimiao.main.data.service.MedInoculateorderService; | |
| 6 | +import com.lymsh.yimiao.main.data.service.MedInoculateOrderService; | |
| 7 | 7 | import org.springframework.beans.factory.annotation.Autowired; | 
| 8 | 8 | import org.springframework.stereotype.Service; | 
| 9 | 9 | |
| 10 | 10 | import java.util.List; | 
| 11 | 11 | |
| 12 | 12 | @Service | 
| 13 | -public class MedInoculateorderServiceImpl implements MedInoculateorderService { | |
| 13 | +public class MedInoculateOrderServiceImpl implements MedInoculateOrderService { | |
| 14 | 14 | |
| 15 | 15 | @Autowired | 
| 16 | -private MedInoculateorderMapper medInoculateorderMapper; | |
| 16 | +private MedInoculateOrderMapper medInoculateorderMapper; | |
| 17 | 17 | |
| 18 | 18 | @Override | 
| 19 | -public void addMedInoculateorder(MedInoculateOrder obj){medInoculateorderMapper.addMedInoculateorder(obj);} | |
| 19 | +public void addMedInoculateOrder(MedInoculateOrder obj){medInoculateorderMapper.addMedInoculateOrder(obj);} | |
| 20 | 20 | @Override | 
| 21 | -public void updateMedInoculateorder(MedInoculateOrder obj){medInoculateorderMapper.updateMedInoculateorder(obj);} | |
| 21 | +public void updateMedInoculateOrder(MedInoculateOrder obj){medInoculateorderMapper.updateMedInoculateOrder(obj);} | |
| 22 | 22 | @Override | 
| 23 | -public void deleteMedInoculateorder (Integer id){medInoculateorderMapper.deleteMedInoculateorder(id);} | |
| 23 | +public void deleteMedInoculateOrder (Integer id){medInoculateorderMapper.deleteMedInoculateOrder(id);} | |
| 24 | 24 | @Override | 
| 25 | -public MedInoculateOrder getMedInoculateorder (String id){return medInoculateorderMapper.getMedInoculateorder(id);} | |
| 25 | +public MedInoculateOrder getMedInoculateOrder (String id){return medInoculateorderMapper.getMedInoculateOrder(id);} | |
| 26 | 26 | @Override | 
| 27 | -public int queryMedInoculateorderCount (MedInoculateOrderQuery query){return medInoculateorderMapper.queryMedInoculateorderCount(query);} | |
| 27 | +public int queryMedInoculateOrderCount (MedInoculateOrderQuery query){return medInoculateorderMapper.queryMedInoculateOrderCount(query);} | |
| 28 | 28 | @Override | 
| 29 | -public List<MedInoculateOrder> queryMedInoculateorder (MedInoculateOrderQuery query){if (query.getNeed() != null) {query.mysqlBuild(medInoculateorderMapper.queryMedInoculateorderCount(query));}return medInoculateorderMapper.queryMedInoculateorder(query);} | |
| 29 | +public List<MedInoculateOrder> queryMedInoculateOrder (MedInoculateOrderQuery query){if (query.getNeed() != null) {query.mysqlBuild(medInoculateorderMapper.queryMedInoculateOrderCount(query));}return medInoculateorderMapper.queryMedInoculateOrder(query);} | |
| 30 | 30 | |
| 31 | 31 | } | 
mainData/src/main/resources/mainOrm/MedInoculateorder.xml
View file @
c962a47
| 1 | 1 | <?xml version="1.0" encoding="UTF-8" ?> | 
| 2 | 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | 
| 3 | -<mapper namespace="com.lymsh.yimiao.main.data.dao.MedInoculateorderMapper"> | |
| 3 | +<mapper namespace="com.lymsh.yimiao.main.data.dao.MedInoculateOrderMapper"> | |
| 4 | 4 | |
| 5 | -<resultMap id="MedInoculateorderResultMap" type="com.lymsh.yimiao.main.data.model.MedInoculateOrder"> | |
| 5 | +<resultMap id="MedInoculateOrderResultMap" type="com.lymsh.yimiao.main.data.model.MedInoculateOrder"> | |
| 6 | 6 | <result column="io_id" property="ioId" jdbcType="VARCHAR" /> | 
| 7 | 7 | <result column="io_kidId" property="ioKidId" jdbcType="VARCHAR" /> | 
| 8 | 8 | <result column="io_vaccineId" property="ioVaccineId" jdbcType="VARCHAR" /> | 
| ... | ... | @@ -13,7 +13,7 @@ | 
| 13 | 13 | <result column="io_orderTime" property="ioOrderTime" jdbcType="VARCHAR" /> | 
| 14 | 14 | </resultMap> | 
| 15 | 15 | |
| 16 | -<select id="getMedInoculateorder" resultMap="MedInoculateorderResultMap" parameterType="java.lang.String"> | |
| 16 | +<select id="getMedInoculateOrder" resultMap="MedInoculateorderResultMap" parameterType="java.lang.String"> | |
| 17 | 17 | select io_id,io_kidId,io_vaccineId,io_organizationId,io_inoculateDate,io_inoculateTime,io_orderOper,io_orderTime | 
| 18 | 18 | FROM med_inoculateorder | 
| 19 | 19 | WHERE io_id = #{ioId,jdbcType=VARCHAR} | 
| ... | ... | @@ -31,7 +31,7 @@ | 
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | |
| 34 | -<sql id="MedInoculateorderCondition"> | |
| 34 | +<sql id="MedInoculateOrderCondition"> | |
| 35 | 35 | <where> | 
| 36 | 36 | 1 = 1 | 
| 37 | 37 | <if test="ioId != null and ioId != ''"> | 
| 38 | 38 | |
| 39 | 39 | |
| 40 | 40 | |
| ... | ... | @@ -63,18 +63,18 @@ | 
| 63 | 63 | |
| 64 | 64 | |
| 65 | 65 | |
| 66 | -<select id="queryMedInoculateorder" resultMap="MedInoculateorderResultMap" parameterType="com.lymsh.yimiao.main.data.model.MedInoculateOrderQuery"> | |
| 66 | +<select id="queryMedInoculateOrder" resultMap="MedInoculateOrderResultMap" parameterType="com.lymsh.yimiao.main.data.model.MedInoculateOrderQuery"> | |
| 67 | 67 | select io_id,io_kidId,io_vaccineId,io_organizationId,io_inoculateDate,io_inoculateTime,io_orderOper,io_orderTime | 
| 68 | 68 | from med_inoculateorder | 
| 69 | -<include refid="MedInoculateorderCondition" /> | |
| 69 | +<include refid="MedInoculateOrderCondition" /> | |
| 70 | 70 | <include refid="orderAndLimit" /> | 
| 71 | 71 | </select> | 
| 72 | 72 | |
| 73 | 73 | |
| 74 | 74 | |
| 75 | -<select id="queryMedInoculateorderCount" resultType="int" parameterType="com.lymsh.yimiao.main.data.model.MedInoculateOrderQuery"> | |
| 75 | +<select id="queryMedInoculateOrderCount" resultType="int" parameterType="com.lymsh.yimiao.main.data.model.MedInoculateOrderQuery"> | |
| 76 | 76 | select count(1) from med_inoculateorder | 
| 77 | -<include refid="MedInoculateorderCondition" /> | |
| 77 | +<include refid="MedInoculateOrderCondition" /> | |
| 78 | 78 | </select> | 
| 79 | 79 | |
| 80 | 80 |