Shanks 7 سال پیش
والد
کامیت
df9a3eff1b
55فایلهای تغییر یافته به همراه3046 افزوده شده و 7 حذف شده
  1. 1 1
      src/main/java/com/ygj/yuemum/controller/admin/CertificateController.java
  2. 1 1
      src/main/java/com/ygj/yuemum/controller/admin/JlAdminUserController.java
  3. 42 0
      src/main/java/com/ygj/yuemum/controller/admin/JlRegionController.java
  4. 37 0
      src/main/java/com/ygj/yuemum/controller/admin/PhotoController.java
  5. 35 0
      src/main/java/com/ygj/yuemum/controller/maternitymatron/JlServiceUserController.java
  6. 35 0
      src/main/java/com/ygj/yuemum/controller/maternitymatron/JlServiceUserInfoController.java
  7. 32 0
      src/main/java/com/ygj/yuemum/controller/maternitymatron/JlStoreXServiceController.java
  8. 37 0
      src/main/java/com/ygj/yuemum/controller/maternitymatron/MmInfoCertificateController.java
  9. 37 0
      src/main/java/com/ygj/yuemum/controller/maternitymatron/MmInfoPhotoController.java
  10. 37 0
      src/main/java/com/ygj/yuemum/controller/maternitymatron/MmInfoResumeController.java
  11. 37 0
      src/main/java/com/ygj/yuemum/controller/maternitymatron/MmInfoTrainController.java
  12. 46 0
      src/main/java/com/ygj/yuemum/controller/maternitymatron/MmStockController.java
  13. 44 0
      src/main/java/com/ygj/yuemum/dao/admin/JlRegionDao.java
  14. 44 0
      src/main/java/com/ygj/yuemum/dao/admin/PhotoDao.java
  15. 44 0
      src/main/java/com/ygj/yuemum/dao/maternitymatron/JlServiceUserDao.java
  16. 44 0
      src/main/java/com/ygj/yuemum/dao/maternitymatron/JlServiceUserInfoDao.java
  17. 37 0
      src/main/java/com/ygj/yuemum/dao/maternitymatron/JlStoreXDao.java
  18. 44 0
      src/main/java/com/ygj/yuemum/dao/maternitymatron/MmInfoCertificateDao.java
  19. 44 0
      src/main/java/com/ygj/yuemum/dao/maternitymatron/MmInfoPhotoDao.java
  20. 44 0
      src/main/java/com/ygj/yuemum/dao/maternitymatron/MmInfoResumeDao.java
  21. 44 0
      src/main/java/com/ygj/yuemum/dao/maternitymatron/MmInfoTrainDao.java
  22. 44 0
      src/main/java/com/ygj/yuemum/dao/maternitymatron/MmStockDao.java
  23. 95 0
      src/main/java/com/ygj/yuemum/domain/admin/JlRegion.java
  24. 45 0
      src/main/java/com/ygj/yuemum/domain/admin/Photo.java
  25. 148 0
      src/main/java/com/ygj/yuemum/domain/maternitymatron/JlServiceUser.java
  26. 177 0
      src/main/java/com/ygj/yuemum/domain/maternitymatron/JlServiceUserInfo.java
  27. 35 0
      src/main/java/com/ygj/yuemum/domain/maternitymatron/JlStoreX.java
  28. 67 0
      src/main/java/com/ygj/yuemum/domain/maternitymatron/MmInfoCertificate.java
  29. 56 0
      src/main/java/com/ygj/yuemum/domain/maternitymatron/MmInfoPhoto.java
  30. 55 0
      src/main/java/com/ygj/yuemum/domain/maternitymatron/MmInfoResume.java
  31. 67 0
      src/main/java/com/ygj/yuemum/domain/maternitymatron/MmInfoTrain.java
  32. 67 0
      src/main/java/com/ygj/yuemum/domain/maternitymatron/MmStock.java
  33. 36 0
      src/main/java/com/ygj/yuemum/service/admin/JlRegionService.java
  34. 37 0
      src/main/java/com/ygj/yuemum/service/admin/PhotoService.java
  35. 38 0
      src/main/java/com/ygj/yuemum/service/maternitymatron/JlServiceUserInfoService.java
  36. 37 0
      src/main/java/com/ygj/yuemum/service/maternitymatron/JlServiceUserService.java
  37. 31 0
      src/main/java/com/ygj/yuemum/service/maternitymatron/JlStoreXService.java
  38. 37 0
      src/main/java/com/ygj/yuemum/service/maternitymatron/MmInfoCertificateService.java
  39. 38 0
      src/main/java/com/ygj/yuemum/service/maternitymatron/MmInfoPhotoService.java
  40. 37 0
      src/main/java/com/ygj/yuemum/service/maternitymatron/MmInfoResumeService.java
  41. 36 0
      src/main/java/com/ygj/yuemum/service/maternitymatron/MmInfoTrainService.java
  42. 38 0
      src/main/java/com/ygj/yuemum/service/maternitymatron/MmStockService.java
  43. 3 3
      src/main/resources/application.yml
  44. 120 0
      src/main/resources/mybatis/mapper/admin/JlRegionMapper.xml
  45. 70 0
      src/main/resources/mybatis/mapper/admin/PhotoMapper.xml
  46. 1 1
      src/main/resources/mybatis/mapper/admin/ResumeMapper.xml
  47. 1 1
      src/main/resources/mybatis/mapper/admin/TrainMapper.xml
  48. 201 0
      src/main/resources/mybatis/mapper/maternitymatron/JlServiceUserInfoMapper.xml
  49. 170 0
      src/main/resources/mybatis/mapper/maternitymatron/JlServiceUserMapper.xml
  50. 62 0
      src/main/resources/mybatis/mapper/maternitymatron/JlStoreXMapper.xml
  51. 90 0
      src/main/resources/mybatis/mapper/maternitymatron/MmInfoCertificateMapper.xml
  52. 81 0
      src/main/resources/mybatis/mapper/maternitymatron/MmInfoPhotoMapper.xml
  53. 80 0
      src/main/resources/mybatis/mapper/maternitymatron/MmInfoResumeMapper.xml
  54. 90 0
      src/main/resources/mybatis/mapper/maternitymatron/MmInfoTrainMapper.xml
  55. 90 0
      src/main/resources/mybatis/mapper/maternitymatron/MmStockMapper.xml

+ 1 - 1
src/main/java/com/ygj/yuemum/controller/admin/CertificateController.java

@@ -15,7 +15,7 @@ public class CertificateController {
     private CertificateService certificateService;
 
     @GetMapping("/getCertificates")
-    public List<Certificate> getTrains() {
+    public List<Certificate> getCertificates() {
         return certificateService.getCertificates();
     }
 

+ 1 - 1
src/main/java/com/ygj/yuemum/controller/admin/JlAdminUserController.java

@@ -14,7 +14,7 @@ public class JlAdminUserController {
     private JlAdminUserService jladminuserService;
 
     @GetMapping("/getJlAdminUsers")
-    public List<JlAdminUser> getUsers() {
+    public List<JlAdminUser> getJlAdminUsers() {
         return jladminuserService.getUsers();
     }
 

+ 42 - 0
src/main/java/com/ygj/yuemum/controller/admin/JlRegionController.java

@@ -0,0 +1,42 @@
+package com.ygj.yuemum.controller.admin;
+
+
+import com.ygj.yuemum.domain.admin.JlRegion;
+
+import com.ygj.yuemum.service.admin.JlRegionService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+public class JlRegionController {
+
+    @Autowired
+    private JlRegionService jlRegionService;
+
+    @GetMapping("/getJlRegions")
+    public List<JlRegion> getJlRegions() {
+        return jlRegionService.getJlRegions();
+    }
+
+    @PostMapping("/addJlRegion")
+    public int add(@ModelAttribute JlRegion jlRegion) {
+        return jlRegionService.addJlRegion(jlRegion);
+    }
+
+    @GetMapping("/deleteJlRegion/{id}")
+    public int delete(@PathVariable("id") Integer id) {
+        return jlRegionService.deleteJlRegion(id);
+    }
+
+    @PostMapping("/updateJlRegion")
+    public int update(@ModelAttribute JlRegion jlRegion) {
+        return jlRegionService.updateJlRegion(jlRegion);
+    }
+
+    @GetMapping("/getJlRegion/{id}")
+    public JlRegion getOne(@PathVariable("id") Integer id) {
+        return jlRegionService.getJlRegion(id);
+    }
+}

+ 37 - 0
src/main/java/com/ygj/yuemum/controller/admin/PhotoController.java

@@ -0,0 +1,37 @@
+package com.ygj.yuemum.controller.admin;
+
+
+import com.ygj.yuemum.domain.admin.Photo;
+import com.ygj.yuemum.service.admin.PhotoService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+public class PhotoController {
+
+    @Autowired
+    private PhotoService photoService;
+
+    @GetMapping("/getPhotos")
+    public List<Photo> getPhotos() {
+        return photoService.getPhotos();
+    }
+
+    @PostMapping("/addPhoto")
+    public int add(@ModelAttribute Photo photo) {
+        return photoService.addPhoto(photo);
+    }
+
+    @GetMapping("/deletePhoto/{id}")
+    public int delete(@PathVariable("id") Integer id) {
+        return photoService.deletePhoto(id);
+    }
+
+    @PostMapping("/updatePhoto")
+    public int update(@ModelAttribute Photo photo) { return photoService.updatePhoto(photo);}
+
+    @GetMapping("/getPhoto/{id}")
+    public Photo getOne(@PathVariable("id") Integer id) {return  photoService.getPhoto(id);}
+}

+ 35 - 0
src/main/java/com/ygj/yuemum/controller/maternitymatron/JlServiceUserController.java

@@ -0,0 +1,35 @@
+package com.ygj.yuemum.controller.maternitymatron;
+
+
+import com.ygj.yuemum.domain.maternitymatron.JlServiceUser;
+import com.ygj.yuemum.service.maternitymatron.JlServiceUserService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+public class JlServiceUserController {
+
+    @Autowired
+    private JlServiceUserService jlServiceUserService;
+
+    @GetMapping("/getjlServiceUsers")
+    public List<JlServiceUser> getjlServiceUsers() {
+        return jlServiceUserService.getJlServiceUsers();
+    }
+
+    @PostMapping("/addjlServiceUser")
+    public int add(@ModelAttribute JlServiceUser jlServiceUser) { return jlServiceUserService.addJlServiceUser(jlServiceUser);    }
+
+    @GetMapping("/deletejlServiceUser/{id}")
+    public int delete(@PathVariable("id") Integer id) {
+        return jlServiceUserService.deleteJlServiceUser(id);
+    }
+
+    @PostMapping("/updatejlServiceUser")
+    public int update(@ModelAttribute JlServiceUser jlServiceUser) { return jlServiceUserService.updateJlServiceUser(jlServiceUser);}
+
+    @GetMapping("/getjlServiceUser/{id}")
+    public JlServiceUser getOne(@PathVariable("id") Integer id) {return  jlServiceUserService.getJlServiceUser(id);}
+}

+ 35 - 0
src/main/java/com/ygj/yuemum/controller/maternitymatron/JlServiceUserInfoController.java

@@ -0,0 +1,35 @@
+package com.ygj.yuemum.controller.maternitymatron;
+
+
+import com.ygj.yuemum.domain.maternitymatron.JlServiceUserInfo;
+import com.ygj.yuemum.service.maternitymatron.JlServiceUserInfoService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+public class JlServiceUserInfoController {
+
+    @Autowired
+    private JlServiceUserInfoService jlServiceUserInfoService;
+
+    @GetMapping("/getJlServiceUserInfos")
+    public List<JlServiceUserInfo> getJlServiceUserInfos() {
+        return jlServiceUserInfoService.getJlServiceUserInfos();
+    }
+
+    @PostMapping("/addJlServiceUserInfo")
+    public int add(@ModelAttribute JlServiceUserInfo jlServiceUserInfo) { return jlServiceUserInfoService.addJlServiceUserInfo(jlServiceUserInfo);    }
+
+    @GetMapping("/deleteJlServiceUserInfo/{id}")
+    public int delete(@PathVariable("id") Integer id) {
+        return jlServiceUserInfoService.deleteJlServiceUserInfo(id);
+    }
+
+    @PostMapping("/updateJlServiceUserInfo")
+    public int update(@ModelAttribute JlServiceUserInfo jlServiceUserInfo) { return jlServiceUserInfoService.updateJlServiceUserInfo(jlServiceUserInfo);}
+
+    @GetMapping("/getMmJlServiceUserInfo/{id}")
+    public JlServiceUserInfo getOne(@PathVariable("id") Integer id) {return  jlServiceUserInfoService.getJlServiceUserInfo(id);}
+}

+ 32 - 0
src/main/java/com/ygj/yuemum/controller/maternitymatron/JlStoreXServiceController.java

@@ -0,0 +1,32 @@
+package com.ygj.yuemum.controller.maternitymatron;
+
+
+import com.ygj.yuemum.domain.maternitymatron.JlStoreX;
+import com.ygj.yuemum.service.maternitymatron.JlStoreXService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+@RestController
+public class JlStoreXServiceController {
+
+    @Autowired
+    private JlStoreXService jlStoreXService;
+
+
+    @PostMapping("/addJlStoreX")
+    public int add(@ModelAttribute JlStoreX jlStoreX) {
+        return jlStoreXService.addJlStoreX(jlStoreX);
+    }
+
+    @GetMapping("/deleteJlStoreX/{id}")
+    public int delete(@PathVariable("id") Integer id) {
+        return jlStoreXService.deleteJlStoreX(id);
+    }
+
+    @PostMapping("/updateJlStoreX")
+    public int update(@ModelAttribute JlStoreX jlStoreX) { return jlStoreXService.updateJlStoreX(jlStoreX);}
+
+    @GetMapping("/getJlStoreX/{id}")
+    public JlStoreX getOne(@PathVariable("id") Integer id) {return  jlStoreXService.getJlStoreX(id);}
+}
+

+ 37 - 0
src/main/java/com/ygj/yuemum/controller/maternitymatron/MmInfoCertificateController.java

@@ -0,0 +1,37 @@
+package com.ygj.yuemum.controller.maternitymatron;
+
+
+import com.ygj.yuemum.domain.maternitymatron.MmInfoCertificate;
+import com.ygj.yuemum.service.maternitymatron.MmInfoCertificateService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+public class MmInfoCertificateController {
+
+    @Autowired
+    private MmInfoCertificateService mmInfoCertificateService;
+
+    @GetMapping("/getMmInfoCertificates")
+    public List<MmInfoCertificate> getMmInfoCertificates() {
+        return mmInfoCertificateService.getMmInfoCertificates();
+    }
+
+    @PostMapping("/addMmInfoCertificate")
+    public int add(@ModelAttribute MmInfoCertificate mmInfoCertificate) {
+        return mmInfoCertificateService.addMmInfoCertificate(mmInfoCertificate);
+    }
+
+    @GetMapping("/deleteMmInfoCertificate/{id}")
+    public int delete(@PathVariable("id") Integer id) {
+        return mmInfoCertificateService.deleteMmInfoCertificate(id);
+    }
+
+    @PostMapping("/updateMmInfoCertificate")
+    public int update(@ModelAttribute MmInfoCertificate mmInfoCertificate) { return mmInfoCertificateService.updateMmInfoCertificate(mmInfoCertificate);}
+
+    @GetMapping("/getMmInfoCertificate/{id}")
+    public MmInfoCertificate getOne(@PathVariable("id") Integer id) {return  mmInfoCertificateService.getMmInfoCertificate(id);}
+}

+ 37 - 0
src/main/java/com/ygj/yuemum/controller/maternitymatron/MmInfoPhotoController.java

@@ -0,0 +1,37 @@
+package com.ygj.yuemum.controller.maternitymatron;
+
+
+import com.ygj.yuemum.domain.maternitymatron.MmInfoPhoto;
+import com.ygj.yuemum.service.maternitymatron.MmInfoPhotoService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+public class MmInfoPhotoController {
+
+    @Autowired
+    private MmInfoPhotoService mmInfoPhotoService;
+
+    @GetMapping("/getMmInfoPhotos")
+    public List<MmInfoPhoto> getMmInfoPhotos() {
+        return mmInfoPhotoService.getMmInfoPhotos();
+    }
+
+    @PostMapping("/addMmInfoPhoto")
+    public int add(@ModelAttribute MmInfoPhoto mmInfoPhoto) {
+        return mmInfoPhotoService.addMmInfoPhoto(mmInfoPhoto);
+    }
+
+    @GetMapping("/deleteMmInfoPhoto/{id}")
+    public int delete(@PathVariable("id") Integer id) {
+        return mmInfoPhotoService.deleteMmInfoPhoto(id);
+    }
+
+    @PostMapping("/updateMmInfoPhoto")
+    public int update(@ModelAttribute MmInfoPhoto mmInfoPhoto) { return mmInfoPhotoService.updateMmInfoPhoto(mmInfoPhoto);}
+
+    @GetMapping("/getMmInfoPhoto/{id}")
+    public MmInfoPhoto getOne(@PathVariable("id") Integer id) {return  mmInfoPhotoService.getMmInfoPhoto(id);}
+}

+ 37 - 0
src/main/java/com/ygj/yuemum/controller/maternitymatron/MmInfoResumeController.java

@@ -0,0 +1,37 @@
+package com.ygj.yuemum.controller.maternitymatron;
+
+
+import com.ygj.yuemum.domain.maternitymatron.MmInfoResume;
+import com.ygj.yuemum.service.maternitymatron.MmInfoResumeService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+public class MmInfoResumeController {
+
+    @Autowired
+    private MmInfoResumeService mmInfoResumeService;
+
+    @GetMapping("/getMmInfoResumes")
+    public List<MmInfoResume> getMmInfoResumes() {
+        return mmInfoResumeService.getMmInfoResumes();
+    }
+
+    @PostMapping("/addMmInfoResume")
+    public int add(@ModelAttribute MmInfoResume mmInfoResume) {
+        return mmInfoResumeService.addMmInfoResume(mmInfoResume);
+    }
+
+    @GetMapping("/deleteMmInfoResume/{id}")
+    public int delete(@PathVariable("id") Integer id) {
+        return mmInfoResumeService.deleteMmInfoResume(id);
+    }
+
+    @PostMapping("/updateMmInfoResume")
+    public int update(@ModelAttribute MmInfoResume mmInfoResume) { return mmInfoResumeService.updateMmInfoResume(mmInfoResume);}
+
+    @GetMapping("/getMmInfoResume/{id}")
+    public MmInfoResume getOne(@PathVariable("id") Integer id) {return  mmInfoResumeService.getMmInfoResume(id);}
+}

+ 37 - 0
src/main/java/com/ygj/yuemum/controller/maternitymatron/MmInfoTrainController.java

@@ -0,0 +1,37 @@
+package com.ygj.yuemum.controller.maternitymatron;
+
+
+import com.ygj.yuemum.domain.maternitymatron.MmInfoTrain;
+import com.ygj.yuemum.service.maternitymatron.MmInfoTrainService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+public class MmInfoTrainController {
+
+    @Autowired
+    private MmInfoTrainService mmInfoTrainService;
+
+    @GetMapping("/getMmInfoTrains")
+    public List<MmInfoTrain> getMmInfoTrains() {
+        return mmInfoTrainService.getMmInfoTrains();
+    }
+
+    @PostMapping("/addMmInfoTrain")
+    public int add(@ModelAttribute MmInfoTrain mmInfoTrain) {
+        return mmInfoTrainService.addMmInfoTrain(mmInfoTrain);
+    }
+
+    @GetMapping("/deleteMmInfoTrain/{id}")
+    public int delete(@PathVariable("id") Integer id) {
+        return mmInfoTrainService.deleteMmInfoTrain(id);
+    }
+
+    @PostMapping("/updateMmInfoTrain")
+    public int update(@ModelAttribute MmInfoTrain mmInfoTrain) { return mmInfoTrainService.updateMmInfoTrain(mmInfoTrain);}
+
+    @GetMapping("/getMmInfoTrain/{id}")
+    public MmInfoTrain getOne(@PathVariable("id") Integer id) {return  mmInfoTrainService.getMmInfoTrain(id);}
+}

+ 46 - 0
src/main/java/com/ygj/yuemum/controller/maternitymatron/MmStockController.java

@@ -0,0 +1,46 @@
+package com.ygj.yuemum.controller.maternitymatron;
+
+import com.ygj.yuemum.domain.maternitymatron.MmStock;
+import com.ygj.yuemum.service.maternitymatron.MmStockService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.propertyeditors.CustomDateEditor;
+import org.springframework.web.bind.WebDataBinder;
+import org.springframework.web.bind.annotation.*;
+
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.List;
+
+@RestController
+public class MmStockController {
+
+    @Autowired
+    private MmStockService mmStockService;
+
+    @GetMapping("/getMmStocks")
+    public List<MmStock> getMmStocks() {
+        return mmStockService.getMmStocks();
+    }
+
+    @PostMapping("/addMmStock")
+    public int add(@ModelAttribute MmStock mmStock) { return mmStockService.addMmStock(mmStock);    }
+
+    @GetMapping("/deleteMmStock/{id}")
+    public int delete(@PathVariable("id") Integer id) {
+        return mmStockService.deleteMmStock(id);
+    }
+
+    @PostMapping("/updateMmStock")
+    public int update(@ModelAttribute MmStock mmStock) { return mmStockService.updateMmStock(mmStock);}
+
+    @GetMapping("/getMmStock/{id}")
+    public MmStock getOne(@PathVariable("id") Integer id) {return  mmStockService.getMmStock(id);}
+
+    @InitBinder
+    public void initBinder(WebDataBinder binder) {
+        DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
+        dateFormat.setLenient(true);
+        binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, true));
+    }
+}

+ 44 - 0
src/main/java/com/ygj/yuemum/dao/admin/JlRegionDao.java

@@ -0,0 +1,44 @@
+package com.ygj.yuemum.dao.admin;
+
+import com.ygj.yuemum.domain.admin.JlRegion;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface JlRegionDao {
+
+    /**
+     * 得到所有的城市信息
+     * @return List<JlRegion>
+     */
+    List<JlRegion> getAll();
+
+    /**
+     * 根据id删除某个城市信息
+     * @param id
+     * @return
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * 插入一条用城市息
+     * @param record
+     * @return
+     */
+    int insertSelective(JlRegion record);
+
+    /**
+     * 根据id查找某个城市信息
+     * @param id
+     * @return User
+     */
+    JlRegion selectByPrimaryKey(Integer id);
+
+    /**
+     * 根据id更新一条城市信息
+     * @param record
+     * @return
+     */
+    int updateByPrimaryKeySelective(JlRegion record);
+}

+ 44 - 0
src/main/java/com/ygj/yuemum/dao/admin/PhotoDao.java

@@ -0,0 +1,44 @@
+package com.ygj.yuemum.dao.admin;
+
+import com.ygj.yuemum.domain.admin.Photo;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface PhotoDao {
+
+    /**
+     * 得到所有的照片信息
+     * @return List<Photo>
+     */
+    List<Photo> getAll();
+
+    /**
+     * 根据id删除某个照片信息
+     * @param id
+     * @return
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * 插入一条用照片息
+     * @param record
+     * @return
+     */
+    int insertSelective(Photo record);
+
+    /**
+     * 根据id查找某个照片信息
+     * @param id
+     * @return User
+     */
+    Photo selectByPrimaryKey(Integer id);
+
+    /**
+     * 根据id更新一条照片信息
+     * @param record
+     * @return
+     */
+    int updateByPrimaryKeySelective(Photo record);
+}

+ 44 - 0
src/main/java/com/ygj/yuemum/dao/maternitymatron/JlServiceUserDao.java

@@ -0,0 +1,44 @@
+package com.ygj.yuemum.dao.maternitymatron;
+
+import com.ygj.yuemum.domain.maternitymatron.JlServiceUser;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface JlServiceUserDao {
+
+    /**
+     * 得到所有的库存信息
+     * @return List<Photo>
+     */
+    List<JlServiceUser> getAll();
+
+    /**
+     * 根据id删除某个库存信息
+     * @param id
+     * @return
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * 插入一条用库存息
+     * @param record
+     * @return
+     */
+    int insertSelective(JlServiceUser record);
+
+    /**
+     * 根据id查找某个库存信息
+     * @param id
+     * @return User
+     */
+    JlServiceUser selectByPrimaryKey(Integer id);
+
+    /**
+     * 根据id更新一条库存信息
+     * @param record
+     * @return
+     */
+    int updateByPrimaryKeySelective(JlServiceUser record);
+}

+ 44 - 0
src/main/java/com/ygj/yuemum/dao/maternitymatron/JlServiceUserInfoDao.java

@@ -0,0 +1,44 @@
+package com.ygj.yuemum.dao.maternitymatron;
+
+import com.ygj.yuemum.domain.maternitymatron.JlServiceUserInfo;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface JlServiceUserInfoDao {
+
+    /**
+     * 得到所有的库存信息
+     * @return List<JlServiceUserInfo>
+     */
+    List<JlServiceUserInfo> getAll();
+
+    /**
+     * 根据id删除某个库存信息
+     * @param id
+     * @return
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * 插入一条用库存息
+     * @param record
+     * @return
+     */
+    int insertSelective(JlServiceUserInfo record);
+
+    /**
+     * 根据id查找某个库存信息
+     * @param id
+     * @return User
+     */
+    JlServiceUserInfo selectByPrimaryKey(Integer id);
+
+    /**
+     * 根据id更新一条库存信息
+     * @param record
+     * @return
+     */
+    int updateByPrimaryKeySelective(JlServiceUserInfo record);
+}

+ 37 - 0
src/main/java/com/ygj/yuemum/dao/maternitymatron/JlStoreXDao.java

@@ -0,0 +1,37 @@
+package com.ygj.yuemum.dao.maternitymatron;
+
+import com.ygj.yuemum.domain.maternitymatron.JlStoreX;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface JlStoreXDao {
+
+
+    /**
+     * 根据id删除某个照片信息
+     * @param id
+     * @return
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * 插入一条用照片息
+     * @param record
+     * @return
+     */
+    int insertSelective(JlStoreX record);
+
+    /**
+     * 根据id查找某个照片信息
+     * @param id
+     * @return User
+     */
+    JlStoreX selectByPrimaryKey(Integer id);
+
+    /**
+     * 根据id更新一条照片信息
+     * @param record
+     * @return
+     */
+    int updateByPrimaryKeySelective(JlStoreX record);
+}

+ 44 - 0
src/main/java/com/ygj/yuemum/dao/maternitymatron/MmInfoCertificateDao.java

@@ -0,0 +1,44 @@
+package com.ygj.yuemum.dao.maternitymatron;
+
+import com.ygj.yuemum.domain.maternitymatron.MmInfoCertificate;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface MmInfoCertificateDao {
+
+    /**
+     * 得到所有的照片信息
+     * @return List<MmInfoCertificate>
+     */
+    List<MmInfoCertificate> getAll();
+
+    /**
+     * 根据id删除某个照片信息
+     * @param id
+     * @return
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * 插入一条用照片息
+     * @param record
+     * @return
+     */
+    int insertSelective(MmInfoCertificate record);
+
+    /**
+     * 根据id查找某个照片信息
+     * @param id
+     * @return User
+     */
+    MmInfoCertificate selectByPrimaryKey(Integer id);
+
+    /**
+     * 根据id更新一条照片信息
+     * @param record
+     * @return
+     */
+    int updateByPrimaryKeySelective(MmInfoCertificate record);
+}

+ 44 - 0
src/main/java/com/ygj/yuemum/dao/maternitymatron/MmInfoPhotoDao.java

@@ -0,0 +1,44 @@
+package com.ygj.yuemum.dao.maternitymatron;
+
+import com.ygj.yuemum.domain.maternitymatron.MmInfoPhoto;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface MmInfoPhotoDao {
+
+    /**
+     * 得到所有的照片信息
+     * @return List<Photo>
+     */
+    List<MmInfoPhoto> getAll();
+
+    /**
+     * 根据id删除某个照片信息
+     * @param id
+     * @return
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * 插入一条用照片息
+     * @param record
+     * @return
+     */
+    int insertSelective(MmInfoPhoto record);
+
+    /**
+     * 根据id查找某个照片信息
+     * @param id
+     * @return User
+     */
+    MmInfoPhoto selectByPrimaryKey(Integer id);
+
+    /**
+     * 根据id更新一条照片信息
+     * @param record
+     * @return
+     */
+    int updateByPrimaryKeySelective(MmInfoPhoto record);
+}

+ 44 - 0
src/main/java/com/ygj/yuemum/dao/maternitymatron/MmInfoResumeDao.java

@@ -0,0 +1,44 @@
+package com.ygj.yuemum.dao.maternitymatron;
+
+import com.ygj.yuemum.domain.maternitymatron.MmInfoResume;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface MmInfoResumeDao {
+
+    /**
+     * 得到所有的照片信息
+     * @return List<MmInfoResume>
+     */
+    List<MmInfoResume> getAll();
+
+    /**
+     * 根据id删除某个照片信息
+     * @param id
+     * @return
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * 插入一条用照片息
+     * @param record
+     * @return
+     */
+    int insertSelective(MmInfoResume record);
+
+    /**
+     * 根据id查找某个照片信息
+     * @param id
+     * @return User
+     */
+    MmInfoResume selectByPrimaryKey(Integer id);
+
+    /**
+     * 根据id更新一条照片信息
+     * @param record
+     * @return
+     */
+    int updateByPrimaryKeySelective(MmInfoResume record);
+}

+ 44 - 0
src/main/java/com/ygj/yuemum/dao/maternitymatron/MmInfoTrainDao.java

@@ -0,0 +1,44 @@
+package com.ygj.yuemum.dao.maternitymatron;
+
+import com.ygj.yuemum.domain.maternitymatron.MmInfoTrain;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface MmInfoTrainDao {
+
+    /**
+     * 得到所有的照片信息
+     * @return List<MmInfoTrain>
+     */
+    List<MmInfoTrain> getAll();
+
+    /**
+     * 根据id删除某个照片信息
+     * @param id
+     * @return
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * 插入一条用照片息
+     * @param record
+     * @return
+     */
+    int insertSelective(MmInfoTrain record);
+
+    /**
+     * 根据id查找某个照片信息
+     * @param id
+     * @return User
+     */
+    MmInfoTrain selectByPrimaryKey(Integer id);
+
+    /**
+     * 根据id更新一条照片信息
+     * @param record
+     * @return
+     */
+    int updateByPrimaryKeySelective(MmInfoTrain record);
+}

+ 44 - 0
src/main/java/com/ygj/yuemum/dao/maternitymatron/MmStockDao.java

@@ -0,0 +1,44 @@
+package com.ygj.yuemum.dao.maternitymatron;
+
+import com.ygj.yuemum.domain.maternitymatron.MmStock;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface MmStockDao {
+
+    /**
+     * 得到所有的库存信息
+     * @return List<Photo>
+     */
+    List<MmStock> getAll();
+
+    /**
+     * 根据id删除某个库存信息
+     * @param id
+     * @return
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * 插入一条用库存息
+     * @param record
+     * @return
+     */
+    int insertSelective(MmStock record);
+
+    /**
+     * 根据id查找某个库存信息
+     * @param id
+     * @return User
+     */
+    MmStock selectByPrimaryKey(Integer id);
+
+    /**
+     * 根据id更新一条库存信息
+     * @param record
+     * @return
+     */
+    int updateByPrimaryKeySelective(MmStock record);
+}

+ 95 - 0
src/main/java/com/ygj/yuemum/domain/admin/JlRegion.java

@@ -0,0 +1,95 @@
+package com.ygj.yuemum.domain.admin;
+
+public class JlRegion {
+
+    private Integer id;
+    private Integer pid; // 城市编号
+    private String name; // 城市名称
+    private String sort; //
+    private String code; // 编码
+    private String type; // 级别
+    private String is_service; //
+    private String updated_at; // 最后更新日期
+
+    public JlRegion() {
+        super();
+    }
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Integer getPid() {
+        return pid;
+    }
+
+    public void setPid(Integer pid) {
+        this.pid = pid;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getSort() {
+        return sort;
+    }
+
+    public void setSort(String sort) {
+        this.sort = sort;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    public String getIs_service() {
+        return is_service;
+    }
+
+    public void setIs_service(String is_service) {
+        this.is_service = is_service;
+    }
+
+    public String getUpdated_at() {
+        return updated_at;
+    }
+
+    public void setUpdated_at(String updated_at) {
+        this.updated_at = updated_at;
+    }
+
+    @Override
+    public String toString() {
+        return "JlRegion{" +
+                "id=" + id +
+                ", pid='" + pid + '\'' +
+                ", name='" + name + '\'' +
+                ", sort='" + sort + '\'' +
+                ", code='" + code + '\'' +
+                ", type='" + type + '\'' +
+                ", is_service='" + is_service + '\'' +
+                ", updated_at='" + updated_at + '\'' +
+                '}';
+    }
+}

+ 45 - 0
src/main/java/com/ygj/yuemum/domain/admin/Photo.java

@@ -0,0 +1,45 @@
+package com.ygj.yuemum.domain.admin;
+
+public class Photo {
+
+    private Integer id;
+    private Integer photo_code; // 照片编号
+    private String photo_title; // 照片名称
+
+    public Photo() {
+        super();
+    }
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Integer getPhoto_code() {
+        return photo_code;
+    }
+
+    public void setPhoto_code(Integer photo_code) {
+        this.photo_code = photo_code;
+    }
+
+    public String getPhoto_title() {
+        return photo_title;
+    }
+
+    public void setPhoto_title(String photo_title) {
+        this.photo_title = photo_title;
+    }
+
+    @Override
+    public String toString() {
+        return "Photo{" +
+                "id=" + id +
+                ", photo_code='" + photo_code + '\'' +
+                ", photo_title='" + photo_title + '\'' +
+                '}';
+    }
+}

+ 148 - 0
src/main/java/com/ygj/yuemum/domain/maternitymatron/JlServiceUser.java

@@ -0,0 +1,148 @@
+package com.ygj.yuemum.domain.maternitymatron;
+
+import java.util.Date;
+
+public class JlServiceUser {
+
+    private Integer id;
+    private String password;
+    private String truename;
+    private String mobile_phone;
+    private String status;
+    private Date last_login_time;
+    private String last_login_ip;
+    private String salt;
+    private String token;
+    private String zone_code;
+    private Date updated_at;
+    private Integer stock_status;
+    private String usertype;
+
+
+    public JlServiceUser() {
+        super();
+    }
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public String getPassword() {
+        return password;
+    }
+
+    public void setPassword(String password) {
+        this.password = password;
+    }
+
+    public String getTruename() {
+        return truename;
+    }
+
+    public void setTruename(String truename) {
+        this.truename = truename;
+    }
+
+    public String getMobile_phone() {
+        return mobile_phone;
+    }
+
+    public void setMobile_phone(String mobile_phone) {
+        this.mobile_phone = mobile_phone;
+    }
+
+    public String getStatus() {
+        return status;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
+    public Date getLast_login_time() {
+        return last_login_time;
+    }
+
+    public void setLast_login_time(Date last_login_time) {
+        this.last_login_time = last_login_time;
+    }
+
+    public String getLast_login_ip() {
+        return last_login_ip;
+    }
+
+    public void setLast_login_ip(String last_login_ip) {
+        this.last_login_ip = last_login_ip;
+    }
+
+    public String getSalt() {
+        return salt;
+    }
+
+    public void setSalt(String salt) {
+        this.salt = salt;
+    }
+
+    public String getToken() {
+        return token;
+    }
+
+    public void setToken(String token) {
+        this.token = token;
+    }
+
+    public String getZone_code() {
+        return zone_code;
+    }
+
+    public void setZone_code(String zone_code) {
+        this.zone_code = zone_code;
+    }
+
+    public Date getUpdated_at() {
+        return updated_at;
+    }
+
+    public void setUpdated_at(Date updated_at) {
+        this.updated_at = updated_at;
+    }
+
+    public Integer getStock_status() {
+        return stock_status;
+    }
+
+    public void setStock_status(Integer stock_status) {
+        this.stock_status = stock_status;
+    }
+
+    public String getUsertype() {
+        return usertype;
+    }
+
+    public void setUsertype(String usertype) {
+        this.usertype = usertype;
+    }
+
+    @Override
+    public String toString() {
+        return "MmInfoPhoto{" +
+                "id=" + id +
+                ", password='" + password + '\'' +
+                ", truename='" + truename + '\'' +
+                ", mobile_phone='" + mobile_phone + '\'' +
+                ", status='" + status + '\'' +
+                ", last_login_time='" + last_login_time + '\'' +
+                ", last_login_ip='" + last_login_ip + '\'' +
+                ", salt='" + salt + '\'' +
+                ", token='" + token + '\'' +
+                ", zone_code='" + zone_code + '\'' +
+                ", updated_at='" + updated_at + '\'' +
+                ", stock_status='" + stock_status + '\'' +
+                ", usertype='" + usertype + '\'' +
+                '}';
+    }
+}

+ 177 - 0
src/main/java/com/ygj/yuemum/domain/maternitymatron/JlServiceUserInfo.java

@@ -0,0 +1,177 @@
+package com.ygj.yuemum.domain.maternitymatron;
+
+import java.util.Date;
+
+public class JlServiceUserInfo {
+
+    private Integer id;
+    private String mobile_phone;
+    private String idcard;
+    private Integer gender;
+    private Date create_time;
+    private Date birthday;
+    private String address;
+    private Integer province;
+    private Integer city;
+    private Integer district;
+    private String experience;
+    private String babynumber;
+    private String constellation;
+    private String zodiac;
+    private Integer update_uid;
+    private Date updated_at;
+
+    public JlServiceUserInfo() {
+        super();
+    }
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public String getMobile_phone() {
+        return mobile_phone;
+    }
+
+    public void setMobile_phone(String mobile_phone) {
+        this.mobile_phone = mobile_phone;
+    }
+
+    public String getIdcard() {
+        return idcard;
+    }
+
+    public void setIdcard(String idcard) {
+        this.idcard = idcard;
+    }
+
+    public Integer getGender() {
+        return gender;
+    }
+
+    public void setGender(Integer gender) {
+        this.gender = gender;
+    }
+
+    public Date getCreate_time() {
+        return create_time;
+    }
+
+    public void setCreate_time(Date create_time) {
+        this.create_time = create_time;
+    }
+
+    public Date getBirthday() {
+        return birthday;
+    }
+
+    public void setBirthday(Date birthday) {
+        this.birthday = birthday;
+    }
+
+    public String getAddress() {
+        return address;
+    }
+
+    public void setAddress(String address) {
+        this.address = address;
+    }
+
+    public Integer getProvince() {
+        return province;
+    }
+
+    public void setProvince(Integer province) {
+        this.province = province;
+    }
+
+    public Integer getCity() {
+        return city;
+    }
+
+    public void setCity(Integer city) {
+        this.city = city;
+    }
+
+    public Integer getDistrict() {
+        return district;
+    }
+
+    public void setDistrict(Integer district) {
+        this.district = district;
+    }
+
+    public String getExperience() {
+        return experience;
+    }
+
+    public void setExperience(String experience) {
+        this.experience = experience;
+    }
+
+    public String getBabynumber() {
+        return babynumber;
+    }
+
+    public void setBabynumber(String babynumber) {
+        this.babynumber = babynumber;
+    }
+
+    public String getConstellation() {
+        return constellation;
+    }
+
+    public void setConstellation(String constellation) {
+        this.constellation = constellation;
+    }
+
+    public String getZodiac() {
+        return zodiac;
+    }
+
+    public void setZodiac(String zodiac) {
+        this.zodiac = zodiac;
+    }
+
+    public Integer getUpdate_uid() {
+        return update_uid;
+    }
+
+    public void setUpdate_uid(Integer update_uid) {
+        this.update_uid = update_uid;
+    }
+
+    public Date getUpdated_at() {
+        return updated_at;
+    }
+
+    public void setUpdated_at(Date updated_at) {
+        this.updated_at = updated_at;
+    }
+
+    @Override
+    public String toString() {
+        return "JlServiceUserInfo{" +
+                "id=" + id +
+                ", mobile_phone='" + mobile_phone + '\'' +
+                ", idcard='" + idcard + '\'' +
+                ", gender='" + gender + '\'' +
+                ", create_time='" + create_time + '\'' +
+                ", birthday='" + birthday + '\'' +
+                ", address='" + address + '\'' +
+                ", province='" + province + '\'' +
+                ", city='" + city + '\'' +
+                ", district='" + district + '\'' +
+                ", experience='" + experience + '\'' +
+                ", babynumber='" + babynumber + '\'' +
+                ", constellation='" + constellation + '\'' +
+                ", zodiac='" + zodiac + '\'' +
+                ", update_uid='" + update_uid + '\'' +
+                ", updated_at='" + updated_at + '\'' +
+                '}';
+    }
+}

+ 35 - 0
src/main/java/com/ygj/yuemum/domain/maternitymatron/JlStoreX.java

@@ -0,0 +1,35 @@
+package com.ygj.yuemum.domain.maternitymatron;
+
+public class JlStoreX {
+
+    private Integer store_id; // 服务门店
+    private String service_id; // 服务者编号
+
+    public JlStoreX() {
+        super();
+    }
+
+    public Integer getStore_id() {
+        return store_id;
+    }
+
+    public void setStore_id(Integer store_id) {
+        this.store_id = store_id;
+    }
+
+    public String getService_id() {
+        return service_id;
+    }
+
+    public void setService_id(String service_id) {
+        this.service_id = service_id;
+    }
+
+    @Override
+    public String toString() {
+        return "JlStoreX{" +
+                "service_id=" + service_id +
+                ", store_id='" + store_id + '\'' +
+                '}';
+    }
+}

+ 67 - 0
src/main/java/com/ygj/yuemum/domain/maternitymatron/MmInfoCertificate.java

@@ -0,0 +1,67 @@
+package com.ygj.yuemum.domain.maternitymatron;
+
+import java.util.Date;
+
+public class MmInfoCertificate {
+
+    private Integer id;
+    private Integer servant_code; // 月嫂编号
+    private Integer certificate_code; // 证书编号
+    private Date start_date; // 领证日期
+    private Date end_date; // 到期日期
+
+    public MmInfoCertificate() {
+        super();
+    }
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Integer getServant_code() {
+        return servant_code;
+    }
+
+    public void setServant_code(Integer servant_code) {
+        this.servant_code = servant_code;
+    }
+
+    public Integer getCertificate_code() {
+        return certificate_code;
+    }
+
+    public void setCertificate_code(Integer certificate_code) {
+        this.certificate_code = certificate_code;
+    }
+
+    public Date getStart_date() {
+        return start_date;
+    }
+
+    public void setStart_date(Date start_date) {
+        this.start_date = start_date;
+    }
+
+    public Date getEnd_date() {
+        return end_date;
+    }
+
+    public void setEnd_date(Date end_date) {
+        this.end_date = end_date;
+    }
+
+    @Override
+    public String toString() {
+        return "MmInfoCertificate{" +
+                "id=" + id +
+                ", servant_code='" + servant_code + '\'' +
+                ", certificate_code='" + certificate_code + '\'' +
+                ", start_date='" + start_date + '\'' +
+                ", end_date='" + end_date + '\'' +
+                '}';
+    }
+}

+ 56 - 0
src/main/java/com/ygj/yuemum/domain/maternitymatron/MmInfoPhoto.java

@@ -0,0 +1,56 @@
+package com.ygj.yuemum.domain.maternitymatron;
+
+public class MmInfoPhoto {
+
+    private Integer id;
+    private Integer servant_code;
+    private Integer photo_code;
+    private String photo_path;
+
+
+    public MmInfoPhoto() {
+        super();
+    }
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Integer getServant_code() {
+        return servant_code;
+    }
+
+    public void setServant_code(Integer servant_code) {
+        this.servant_code = servant_code;
+    }
+
+    public Integer getPhoto_code() {
+        return photo_code;
+    }
+
+    public void setPhoto_code(Integer photo_code) {
+        this.photo_code = photo_code;
+    }
+
+    public String getPhoto_path() {
+        return photo_path;
+    }
+
+    public void setPhoto_path(String photo_path) {
+        this.photo_path = photo_path;
+    }
+
+    @Override
+    public String toString() {
+        return "MmInfoPhoto{" +
+                "id=" + id +
+                ", servant_code='" + servant_code + '\'' +
+                ", photo_code='" + photo_code + '\'' +
+                ", photo_path='" + photo_path + '\'' +
+                '}';
+    }
+}

+ 55 - 0
src/main/java/com/ygj/yuemum/domain/maternitymatron/MmInfoResume.java

@@ -0,0 +1,55 @@
+package com.ygj.yuemum.domain.maternitymatron;
+
+public class MmInfoResume {
+
+    private Integer id;
+    private Integer servant_code;
+    private Integer resume_code;
+    private String resume_path;
+
+    public MmInfoResume() {
+        super();
+    }
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Integer getServant_code() {
+        return servant_code;
+    }
+
+    public void setServant_code(Integer servant_code) {
+        this.servant_code = servant_code;
+    }
+
+    public Integer getResume_code() {
+        return resume_code;
+    }
+
+    public void setResume_code(Integer resume_code) {
+        this.resume_code = resume_code;
+    }
+
+    public String getResume_path() {
+        return resume_path;
+    }
+
+    public void setResume_path(String resume_path) {
+        this.resume_path = resume_path;
+    }
+
+    @Override
+    public String toString() {
+        return "MmInfoResume{" +
+                "id=" + id +
+                ", servant_code='" + servant_code + '\'' +
+                ", resume_code='" + resume_code + '\'' +
+                ", resume_path='" + resume_path + '\'' +
+                '}';
+    }
+}

+ 67 - 0
src/main/java/com/ygj/yuemum/domain/maternitymatron/MmInfoTrain.java

@@ -0,0 +1,67 @@
+package com.ygj.yuemum.domain.maternitymatron;
+
+import java.util.Date;
+
+public class MmInfoTrain {
+
+    private Integer id;
+    private Integer servant_code; // 月嫂编号
+    private Integer train_code; // 培训编号
+    private Date train_date; // 培训编号
+    private String train_result; // 培训成绩
+
+    public MmInfoTrain() {
+        super();
+    }
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Integer getServant_code() {
+        return servant_code;
+    }
+
+    public void setServant_code(Integer servant_code) {
+        this.servant_code = servant_code;
+    }
+
+    public Integer getTrain_code() {
+        return train_code;
+    }
+
+    public void setTrain_code(Integer train_code) {
+        this.train_code = train_code;
+    }
+
+    public Date getTrain_date() {
+        return train_date;
+    }
+
+    public void setTrain_date(Date train_date) {
+        this.train_date = train_date;
+    }
+
+    public String getTrain_result() {
+        return train_result;
+    }
+
+    public void setTrain_result(String train_result) {
+        this.train_result = train_result;
+    }
+
+    @Override
+    public String toString() {
+        return "MmInfoTrain{" +
+                "id=" + id +
+                ", servant_code='" + servant_code + '\'' +
+                ", train_code='" + train_code + '\'' +
+                ", train_date='" + train_date + '\'' +
+                ", train_result='" + train_result + '\'' +
+                '}';
+    }
+}

+ 67 - 0
src/main/java/com/ygj/yuemum/domain/maternitymatron/MmStock.java

@@ -0,0 +1,67 @@
+package com.ygj.yuemum.domain.maternitymatron;
+
+import java.util.Date;
+
+public class MmStock {
+
+    private Integer id;
+    private Integer servant_code; // 月嫂编号
+    private Integer stock_status; // 库存状态
+    private Date start_date; // 开始日期
+    private Date end_date; // 结束日期
+
+    public MmStock() {
+        super();
+    }
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Integer getServant_code() {
+        return servant_code;
+    }
+
+    public void setServant_code(Integer servant_code) {
+        this.servant_code = servant_code;
+    }
+
+    public Integer getStock_status() {
+        return stock_status;
+    }
+
+    public void setStock_status(Integer stock_status) {
+        this.stock_status = stock_status;
+    }
+
+    public Date getStart_date() {
+        return start_date;
+    }
+
+    public void setStart_date(Date start_date) {
+        this.start_date = start_date;
+    }
+
+    public Date getEnd_date() {
+        return end_date;
+    }
+
+    public void setEnd_date(Date end_date) {
+        this.end_date = end_date;
+    }
+
+    @Override
+    public String toString() {
+        return "MmStock{" +
+                "id=" + id +
+                ", servant_code='" + servant_code + '\'' +
+                ", stock_status='" + stock_status + '\'' +
+                ", start_date='" + start_date + '\'' +
+                ", end_date='" + end_date + '\'' +
+                '}';
+    }
+}

+ 36 - 0
src/main/java/com/ygj/yuemum/service/admin/JlRegionService.java

@@ -0,0 +1,36 @@
+package com.ygj.yuemum.service.admin;
+
+import com.ygj.yuemum.dao.admin.JlRegionDao;
+import com.ygj.yuemum.domain.admin.JlRegion;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class JlRegionService {
+
+    @Autowired
+
+    private JlRegionDao jlRegionDao;
+    public List<JlRegion> getJlRegions() {
+        List<JlRegion> jlRegions = jlRegionDao.getAll();
+        return jlRegions;
+    }
+
+    public int addJlRegion(JlRegion jlRegion) {
+        return jlRegionDao.insertSelective(jlRegion);
+    }
+
+    public int deleteJlRegion(Integer id) {
+        return jlRegionDao.deleteByPrimaryKey(id);
+    }
+
+    public int updateJlRegion(JlRegion jlRegion) {
+        return jlRegionDao.updateByPrimaryKeySelective(jlRegion);
+    }
+
+    public JlRegion getJlRegion(Integer id) {
+        return jlRegionDao.selectByPrimaryKey(id);
+    }
+}

+ 37 - 0
src/main/java/com/ygj/yuemum/service/admin/PhotoService.java

@@ -0,0 +1,37 @@
+package com.ygj.yuemum.service.admin;
+
+import com.ygj.yuemum.dao.admin.PhotoDao;
+import com.ygj.yuemum.domain.admin.Photo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class PhotoService {
+
+    @Autowired
+
+    private PhotoDao photoDao;
+
+    public List<Photo> getPhotos() {
+        List<Photo> photos = photoDao.getAll();
+        return photos;
+    }
+
+    public int addPhoto(Photo photo) {
+        return photoDao.insertSelective(photo);
+    }
+
+    public int deletePhoto(Integer id) {
+        return photoDao.deleteByPrimaryKey(id);
+    }
+
+    public int updatePhoto(Photo photo) {
+        return photoDao.updateByPrimaryKeySelective(photo);
+    }
+
+    public Photo getPhoto(Integer id) {
+        return photoDao.selectByPrimaryKey(id);
+    }
+}

+ 38 - 0
src/main/java/com/ygj/yuemum/service/maternitymatron/JlServiceUserInfoService.java

@@ -0,0 +1,38 @@
+package com.ygj.yuemum.service.maternitymatron;
+
+import com.ygj.yuemum.dao.maternitymatron.JlServiceUserInfoDao;
+import com.ygj.yuemum.domain.maternitymatron.JlServiceUserInfo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class JlServiceUserInfoService {
+
+    @Autowired
+
+    private JlServiceUserInfoDao jlServiceUserInfoDao;
+
+
+    public List<JlServiceUserInfo> getJlServiceUserInfos() {
+        List<JlServiceUserInfo> jlServiceUserInfos = jlServiceUserInfoDao.getAll();
+        return jlServiceUserInfos;
+    }
+
+    public int addJlServiceUserInfo(JlServiceUserInfo jlServiceUserInfo) {
+        return jlServiceUserInfoDao.insertSelective(jlServiceUserInfo);
+    }
+
+    public int deleteJlServiceUserInfo(Integer id) {
+        return jlServiceUserInfoDao.deleteByPrimaryKey(id);
+    }
+
+    public int updateJlServiceUserInfo(JlServiceUserInfo jlServiceUserInfo) {
+        return jlServiceUserInfoDao.updateByPrimaryKeySelective(jlServiceUserInfo);
+    }
+
+    public JlServiceUserInfo getJlServiceUserInfo(Integer id) {
+        return jlServiceUserInfoDao.selectByPrimaryKey(id);
+    }
+}

+ 37 - 0
src/main/java/com/ygj/yuemum/service/maternitymatron/JlServiceUserService.java

@@ -0,0 +1,37 @@
+package com.ygj.yuemum.service.maternitymatron;
+
+import com.ygj.yuemum.dao.maternitymatron.JlServiceUserDao;
+import com.ygj.yuemum.domain.maternitymatron.JlServiceUser;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class JlServiceUserService {
+
+    @Autowired
+    private JlServiceUserDao jlServiceUserDao;
+
+
+    public List<JlServiceUser> getJlServiceUsers() {
+        List<JlServiceUser> jlServiceUsers = jlServiceUserDao.getAll();
+        return jlServiceUsers;
+    }
+
+    public int addJlServiceUser(JlServiceUser jlServiceUser) {
+        return jlServiceUserDao.insertSelective(jlServiceUser);
+    }
+
+    public int deleteJlServiceUser(Integer id) {
+        return jlServiceUserDao.deleteByPrimaryKey(id);
+    }
+
+    public int updateJlServiceUser(JlServiceUser jlServiceUser) {
+        return jlServiceUserDao.updateByPrimaryKeySelective(jlServiceUser);
+    }
+
+    public JlServiceUser getJlServiceUser(Integer id) {
+        return jlServiceUserDao.selectByPrimaryKey(id);
+    }
+}

+ 31 - 0
src/main/java/com/ygj/yuemum/service/maternitymatron/JlStoreXService.java

@@ -0,0 +1,31 @@
+package com.ygj.yuemum.service.maternitymatron;
+
+import com.ygj.yuemum.dao.maternitymatron.JlStoreXDao;
+import com.ygj.yuemum.domain.maternitymatron.JlStoreX;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class JlStoreXService {
+
+    @Autowired
+
+    private JlStoreXDao jlStoreXDao;
+
+
+    public int addJlStoreX(JlStoreX jlStoreX) {
+        return jlStoreXDao.insertSelective(jlStoreX);
+    }
+
+    public int deleteJlStoreX(Integer id) {
+        return jlStoreXDao.deleteByPrimaryKey(id);
+    }
+
+    public int updateJlStoreX(JlStoreX jlStoreX) {
+        return jlStoreXDao.updateByPrimaryKeySelective(jlStoreX);
+    }
+
+    public JlStoreX getJlStoreX(Integer id) {
+        return jlStoreXDao.selectByPrimaryKey(id);
+    }
+}

+ 37 - 0
src/main/java/com/ygj/yuemum/service/maternitymatron/MmInfoCertificateService.java

@@ -0,0 +1,37 @@
+package com.ygj.yuemum.service.maternitymatron;
+
+import com.ygj.yuemum.dao.maternitymatron.MmInfoCertificateDao;
+import com.ygj.yuemum.domain.maternitymatron.MmInfoCertificate;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class MmInfoCertificateService {
+
+    @Autowired
+
+    private MmInfoCertificateDao mmInfoCertificateDao;
+
+    public List<MmInfoCertificate> getMmInfoCertificates() {
+        List<MmInfoCertificate> mmInfoCertificates = mmInfoCertificateDao.getAll();
+        return mmInfoCertificates;
+    }
+
+    public int addMmInfoCertificate(MmInfoCertificate mminfoCertificate) {
+        return mmInfoCertificateDao.insertSelective(mminfoCertificate);
+    }
+
+    public int deleteMmInfoCertificate(Integer id) {
+        return mmInfoCertificateDao.deleteByPrimaryKey(id);
+    }
+
+    public int updateMmInfoCertificate(MmInfoCertificate mminfoCertificate) {
+        return mmInfoCertificateDao.updateByPrimaryKeySelective(mminfoCertificate);
+    }
+
+    public MmInfoCertificate getMmInfoCertificate(Integer id) {
+        return mmInfoCertificateDao.selectByPrimaryKey(id);
+    }
+}

+ 38 - 0
src/main/java/com/ygj/yuemum/service/maternitymatron/MmInfoPhotoService.java

@@ -0,0 +1,38 @@
+package com.ygj.yuemum.service.maternitymatron;
+
+import com.ygj.yuemum.dao.maternitymatron.MmInfoPhotoDao;
+import com.ygj.yuemum.domain.maternitymatron.MmInfoPhoto;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class MmInfoPhotoService {
+
+    @Autowired
+
+
+    private MmInfoPhotoDao mmInfoPhotoDao;
+
+    public List<MmInfoPhoto> getMmInfoPhotos() {
+        List<MmInfoPhoto>  mmInfoPhotos = mmInfoPhotoDao.getAll();
+        return mmInfoPhotos;
+    }
+
+    public int addMmInfoPhoto(MmInfoPhoto mmInfoPhoto) {
+        return mmInfoPhotoDao.insertSelective(mmInfoPhoto);
+    }
+
+    public int deleteMmInfoPhoto(Integer id) {
+        return mmInfoPhotoDao.deleteByPrimaryKey(id);
+    }
+
+    public int updateMmInfoPhoto(MmInfoPhoto mmInfoPhoto) {
+        return mmInfoPhotoDao.updateByPrimaryKeySelective(mmInfoPhoto);
+    }
+
+    public MmInfoPhoto getMmInfoPhoto(Integer id) {
+        return mmInfoPhotoDao.selectByPrimaryKey(id);
+    }
+}

+ 37 - 0
src/main/java/com/ygj/yuemum/service/maternitymatron/MmInfoResumeService.java

@@ -0,0 +1,37 @@
+package com.ygj.yuemum.service.maternitymatron;
+
+import com.ygj.yuemum.dao.maternitymatron.MmInfoResumeDao;
+import com.ygj.yuemum.domain.maternitymatron.MmInfoResume;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class MmInfoResumeService {
+
+    @Autowired
+
+    private MmInfoResumeDao mmInfoResumeDao;
+
+    public List<MmInfoResume> getMmInfoResumes() {
+        List<MmInfoResume> mmInfoResumes = mmInfoResumeDao.getAll();
+        return mmInfoResumes;
+    }
+
+    public int addMmInfoResume(MmInfoResume mmInfoResume) {
+        return mmInfoResumeDao.insertSelective(mmInfoResume);
+    }
+
+    public int deleteMmInfoResume(Integer id) {
+        return mmInfoResumeDao.deleteByPrimaryKey(id);
+    }
+
+    public int updateMmInfoResume(MmInfoResume mmInfoResume) {
+        return mmInfoResumeDao.updateByPrimaryKeySelective(mmInfoResume);
+    }
+
+    public MmInfoResume getMmInfoResume(Integer id) {
+        return mmInfoResumeDao.selectByPrimaryKey(id);
+    }
+}

+ 36 - 0
src/main/java/com/ygj/yuemum/service/maternitymatron/MmInfoTrainService.java

@@ -0,0 +1,36 @@
+package com.ygj.yuemum.service.maternitymatron;
+
+import com.ygj.yuemum.dao.maternitymatron.MmInfoTrainDao;
+import com.ygj.yuemum.domain.maternitymatron.MmInfoTrain;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class MmInfoTrainService {
+
+    @Autowired
+    private MmInfoTrainDao mmInfoTrainDao;
+
+    public List<MmInfoTrain> getMmInfoTrains() {
+        List<MmInfoTrain> mmInfoTrains = mmInfoTrainDao.getAll();
+        return mmInfoTrains;
+    }
+
+    public int addMmInfoTrain(MmInfoTrain mmInfoTrain) {
+        return mmInfoTrainDao.insertSelective(mmInfoTrain);
+    }
+
+    public int deleteMmInfoTrain(Integer id) {
+        return mmInfoTrainDao.deleteByPrimaryKey(id);
+    }
+
+    public int updateMmInfoTrain(MmInfoTrain mmInfoTrain) {
+        return mmInfoTrainDao.updateByPrimaryKeySelective(mmInfoTrain);
+    }
+
+    public MmInfoTrain getMmInfoTrain(Integer id) {
+        return mmInfoTrainDao.selectByPrimaryKey(id);
+    }
+}

+ 38 - 0
src/main/java/com/ygj/yuemum/service/maternitymatron/MmStockService.java

@@ -0,0 +1,38 @@
+package com.ygj.yuemum.service.maternitymatron;
+
+import com.ygj.yuemum.dao.maternitymatron.MmStockDao;
+import com.ygj.yuemum.domain.maternitymatron.MmStock;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class MmStockService {
+
+    @Autowired
+
+    private MmStockDao mmStockDao;
+
+
+    public List<MmStock> getMmStocks() {
+        List<MmStock> mmStocks = mmStockDao.getAll();
+        return mmStocks;
+    }
+
+    public int addMmStock(MmStock mmStock) {
+        return mmStockDao.insertSelective(mmStock);
+    }
+
+    public int deleteMmStock(Integer id) {
+        return mmStockDao.deleteByPrimaryKey(id);
+    }
+
+    public int updateMmStock(MmStock mmStock) {
+        return mmStockDao.updateByPrimaryKeySelective(mmStock);
+    }
+
+    public MmStock getMmStock(Integer id) {
+        return mmStockDao.selectByPrimaryKey(id);
+    }
+}

+ 3 - 3
src/main/resources/application.yml

@@ -2,11 +2,11 @@ server:
   port: 8080
 mybatis:
   config-location: classpath:mybatis/mybatis-config.xml
-  mapper-locations: mybatis/mapper/admin/*.xml
-  mybatis.type-aliases-package: com.ygj.yuemum.domain/admin
+  mapper-locations: mybatis/mapper/admin/*.xml,mybatis/mapper/maternitymatron/*.xml
+  mybatis.type-aliases-package: com.ygj.yuemum.domain/admin,com.ygj.yuemum.domain/maternitymatron
 spring:
   datasource:
     driverClassName: com.mysql.jdbc.Driver
-    url: jdbc:mysql://121.43.235.99:3306/yuemum?useUnicode=true&characterEncoding=utf-8
+    url: jdbc:mysql://121.43.235.99:3306/yuemum?useUnicode=true&characterEncoding=utf-8&noDatetimeStringSync=true
     username: jielin
     password: jielin123

+ 120 - 0
src/main/resources/mybatis/mapper/admin/JlRegionMapper.xml

@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.ygj.yuemum.dao.admin.JlRegionDao" >
+
+    <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.admin.JlRegion" >
+        <id column="id" property="id" jdbcType="INTEGER" />
+        <result column="pid" property="pid" jdbcType="INTEGER" />
+        <result column="name" property="name" jdbcType="VARCHAR" />
+        <result column="sort" property="sort" jdbcType="INTEGER" />
+        <result column="code" property="code" jdbcType="VARCHAR" />
+        <result column="type" property="type" jdbcType="INTEGER" />
+        <result column="is_service" property="is_service" jdbcType="INTEGER" />
+        <result column="updated_at" property="updated_at" jdbcType="DATE" />
+    </resultMap>
+
+    <sql id="Base_Column_List" >
+        id, pid, name,sort,code,type,is_service,updated_at
+    </sql>
+
+    <!-- 得到所有的城市信息 -->
+    <select id="getAll" resultMap="BaseResultMap" >
+        select
+        <include refid="Base_Column_List" />
+        from jl_region
+    </select>
+
+    <!-- 根据id查找某个城市信息 -->
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from jl_region
+        where pid = #{pid,jdbcType=INTEGER}
+    </select>
+    <!-- 根据id删除某个城市信息 -->
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from jl_region
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+
+    <!-- 插入一条城市信息 -->
+    <insert id="insertSelective" parameterType="com.ygj.yuemum.domain.admin.JlRegion" >
+        insert into jl_region
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+            <if test="pid != null" >
+                pid,
+            </if>
+            <if test="name != null" >
+                name,
+            </if>
+            <if test="sort != null" >
+                sort,
+            </if>
+            <if test="code != null" >
+                code,
+            </if>
+            <if test="type != null" >
+                type,
+            </if>
+            <if test="is_service != null" >
+                is_service,
+            </if>
+            <if test="updated_at != null" >
+                updated_at,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+            <if test="pid != null" >
+                #{pid,jdbcType=INTEGER},
+            </if>
+            <if test="name != null" >
+                #{name,jdbcType=VARCHAR},
+            </if>
+            <if test="sort != null" >
+                #{sort,jdbcType=INTEGER},
+            </if>
+            <if test="code != null" >
+                #{code,jdbcType=VARCHAR},
+            </if>
+            <if test="type != null" >
+                #{type,jdbcType=INTEGER},
+            </if>
+            <if test="is_service != null" >
+                #{is_service,jdbcType=INTEGER},
+            </if>
+            <if test="updated_at != null" >
+                #{updated_at,jdbcType=DATE},
+            </if>
+        </trim>
+    </insert>
+
+    <!-- 根据id更新一条城市信息 -->
+    <update id="updateByPrimaryKeySelective" parameterType="com.ygj.yuemum.domain.admin.JlRegion" >
+        update jl_region
+        <set >
+            <if test="pid != null" >
+                pid = #{pid,jdbcType=INTEGER},
+            </if>
+            <if test="name != null" >
+                name = #{name,jdbcType=VARCHAR},
+            </if>
+            <if test="sort != null" >
+                sort = #{sort,jdbcType=INTEGER},
+            </if>
+            <if test="code != null" >
+                code = #{code,jdbcType=VARCHAR},
+            </if>
+            <if test="type != null" >
+                type = #{type,jdbcType=INTEGER},
+            </if>
+            <if test="is_service != null" >
+                is_service = #{is_service,jdbcType=INTEGER},
+            </if>
+            <if test="updated_at != null" >
+                updated_at = #{updated_at,jdbcType=DATE},
+            </if>
+        </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+
+</mapper>

+ 70 - 0
src/main/resources/mybatis/mapper/admin/PhotoMapper.xml

@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.ygj.yuemum.dao.admin.PhotoDao" >
+
+    <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.admin.Photo" >
+        <id column="id" property="id" jdbcType="INTEGER" />
+        <result column="photo_code" property="photo_code" jdbcType="INTEGER" />
+        <result column="photo_title" property="photo_title" jdbcType="VARCHAR" />
+    </resultMap>
+
+    <sql id="Base_Column_List" >
+        id, photo_code, photo_title
+    </sql>
+
+    <!-- 得到所有的照片信息 -->
+    <select id="getAll" resultMap="BaseResultMap" >
+        select
+        <include refid="Base_Column_List" />
+        from photo
+    </select>
+
+    <!-- 根据id查找某个照片信息 -->
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from photo
+        where photo_code = #{photo_code,jdbcType=INTEGER}
+    </select>
+    <!-- 根据id删除某个照片信息 -->
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from photo
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+
+    <!-- 插入一条照片信息 -->
+    <insert id="insertSelective" parameterType="com.ygj.yuemum.domain.admin.Photo" >
+        insert into photo
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+            <if test="photo_code != null" >
+                photo_code,
+            </if>
+            <if test="photo_title != null" >
+                photo_title,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+            <if test="photo_code != null" >
+                #{photo_code,jdbcType=INTEGER},
+            </if>
+            <if test="photo_title != null" >
+                #{photo_title,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+
+    <!-- 根据id更新一条照片信息 -->
+    <update id="updateByPrimaryKeySelective" parameterType="com.ygj.yuemum.domain.admin.Photo" >
+        update photo
+        <set >
+            <if test="photo_code != null" >
+                photo_code = #{photo_code,jdbcType=INTEGER},
+            </if>
+            <if test="photo_title != null" >
+                photo_title = #{photo_title,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+
+</mapper>

+ 1 - 1
src/main/resources/mybatis/mapper/admin/ResumeMapper.xml

@@ -25,7 +25,7 @@
         select
         <include refid="Base_Column_List" />
         from resume
-        where id = #{id,jdbcType=INTEGER}
+        where resume_code = #{resume_code,jdbcType=INTEGER}
     </select>
     <!-- 根据id删除某个简历信息 -->
     <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >

+ 1 - 1
src/main/resources/mybatis/mapper/admin/TrainMapper.xml

@@ -24,7 +24,7 @@
         select
         <include refid="Base_Column_List" />
         from train
-        where id = #{id,jdbcType=INTEGER}
+        where train_code = #{train_code,jdbcType=INTEGER}
     </select>
     <!-- 根据id删除某个培训信息 -->
     <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >

+ 201 - 0
src/main/resources/mybatis/mapper/maternitymatron/JlServiceUserInfoMapper.xml

@@ -0,0 +1,201 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.ygj.yuemum.dao.maternitymatron.JlServiceUserInfoDao" >
+
+    <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.maternitymatron.JlServiceUserInfo" >
+        <id column="id" property="id" jdbcType="INTEGER" />
+        <result column="mobile_phone" property="mobile_phone" jdbcType="VARCHAR" />
+        <result column="idcard" property="idcard" jdbcType="VARCHAR" />
+        <result column="gender" property="gender" jdbcType="INTEGER" />
+        <result column="create_time" property="create_time" jdbcType="DATE" />
+        <result column="birthday" property="birthday" jdbcType="DATE" />
+        <result column="address" property="address" jdbcType="VARCHAR" />
+        <result column="province" property="province" jdbcType="INTEGER" />
+        <result column="city" property="city" jdbcType="INTEGER" />
+        <result column="district" property="district" jdbcType="INTEGER" />
+        <result column="experience" property="experience" jdbcType="VARCHAR" />
+        <result column="babynumber" property="babynumber" jdbcType="VARCHAR" />
+        <result column="constellation" property="constellation" jdbcType="VARCHAR" />
+        <result column="zodiac" property="zodiac" jdbcType="VARCHAR" />
+        <result column="update_uid" property="update_uid" jdbcType="INTEGER" />
+        <result column="updated_at" property="updated_at" jdbcType="DATE" />
+    </resultMap>
+
+    <sql id="Base_Column_List" >
+        id, mobile_phone, idcard,gender,create_time,birthday,address,province,city,district,experience,babynumber,constellation,zodiac,update_uid,updated_at
+    </sql>
+
+    <!-- 得到所有的月嫂信息 -->
+    <select id="getAll" resultMap="BaseResultMap" >
+        select
+        <include refid="Base_Column_List" />
+        from jl_service_user_info
+    </select>
+
+    <!-- 根据id查找某个月嫂信息 -->
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from jl_service_user_info
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <!-- 根据id删除某个月嫂信息 -->
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from jl_service_user_info
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+
+    <!-- 插入一条月嫂信息 -->
+    <insert id="insertSelective" parameterType="com.ygj.yuemum.domain.maternitymatron.JlServiceUserInfo" >
+        insert into jl_service_user_info
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+            <if test="mobile_phone != null" >
+                mobile_phone,
+            </if>
+            <if test="idcard != null" >
+                idcard,
+            </if>
+            <if test="gender != null" >
+                gender,
+            </if>
+            <if test="create_time != null" >
+                create_time,
+            </if>
+            <if test="birthday != null" >
+                birthday,
+            </if>
+            <if test="address != null" >
+                address,
+            </if>
+            <if test="province != null" >
+                province,
+            </if>
+            <if test="city != null" >
+                city,
+            </if>
+            <if test="district != null" >
+                district,
+            </if>
+            <if test="experience != null" >
+                experience,
+            </if>
+            <if test="babynumber != null" >
+                babynumber,
+            </if>
+            <if test="constellation != null" >
+                constellation,
+            </if>
+            <if test="zodiac != null" >
+                zodiac,
+            </if>
+            <if test="update_uid != null" >
+                update_uid,
+            </if>
+            <if test="updated_at != null" >
+                updated_at,
+            </if>
+
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+            <if test="mobile_phone != null" >
+                #{mobile_phone,jdbcType=VARCHAR},
+            </if>
+            <if test="idcard != null" >
+                #{idcard,jdbcType=VARCHAR},
+            </if>
+            <if test="gender != null" >
+                #{gender,jdbcType=INTEGER},
+            </if>
+            <if test="create_time != null" >
+                #{create_time,jdbcType=DATE},
+            </if>
+            <if test="birthday != null" >
+                #{birthday,jdbcType=DATE},
+            </if>
+            <if test="address != null" >
+                #{address,jdbcType=VARCHAR},
+            </if>
+            <if test="province != null" >
+                #{province,jdbcType=INTEGER},
+            </if>
+            <if test="city != null" >
+                #{city,jdbcType=INTEGER},
+            </if>
+            <if test="district != null" >
+                #{district,jdbcType=INTEGER},
+            </if>
+            <if test="experience != null" >
+                #{experience,jdbcType=VARCHAR},
+            </if>
+            <if test="babynumber != null" >
+                #{babynumber,jdbcType=VARCHAR},
+            </if>
+            <if test="constellation != null" >
+                #{constellation,jdbcType=VARCHAR},
+            </if>
+            <if test="zodiac != null" >
+                #{zodiac,jdbcType=VARCHAR},
+            </if>
+            <if test="update_uid != null" >
+                #{update_uid,jdbcType=INTEGER},
+            </if>
+            <if test="updated_at != null" >
+                #{updated_at,jdbcType=DATAE},
+            </if>
+        </trim>
+    </insert>
+
+    <!-- 根据id更新一条月嫂信息 -->
+    <update id="updateByPrimaryKeySelective" parameterType="com.ygj.yuemum.domain.maternitymatron.JlServiceUserInfo" >
+        update jl_service_user_info
+        <set >
+            <if test="mobile_phone != null" >
+                mobile_phone = #{mobile_phone,jdbcType=VARCHAR},
+            </if>
+            <if test="idcard != null" >
+                idcard = #{idcard,jdbcType=VARCHAR},
+            </if>
+            <if test="gender != null" >
+                gender = #{gender,jdbcType=INTEGER},
+            </if>
+            <if test="create_time != null" >
+                create_time = #{create_time,jdbcType=DATE},
+            </if>
+            <if test="birthday != null" >
+                birthday = #{birthday,jdbcType=DATE},
+            </if>
+            <if test="address != null" >
+                address = #{address,jdbcType=VARCHAR},
+            </if>
+            <if test="province != null" >
+                province = #{province,jdbcType=INTEGER},
+            </if>
+            <if test="city != null" >
+                city = #{city,jdbcType=INTEGER},
+            </if>
+            <if test="district != null" >
+                district = #{district,jdbcType=INTEGER},
+            </if>
+            <if test="experience != null" >
+                experience = #{experience,jdbcType=VARCHAR},
+            </if>
+            <if test="babynumber != null" >
+                babynumber = #{babynumber,jdbcType=VARCHAR},
+            </if>
+            <if test="constellation != null" >
+                constellation = #{constellation,jdbcType=VARCHAR},
+            </if>
+            <if test="zodiac != null" >
+                zodiac = #{zodiac,jdbcType=VARCHAR},
+            </if>
+            <if test="update_uid != null" >
+                update_uid = #{update_uid,jdbcType=INTEGER},
+            </if>
+            <if test="updated_at != null" >
+                updated_at = #{updated_at,jdbcType=DATE},
+            </if>
+        </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+
+</mapper>

+ 170 - 0
src/main/resources/mybatis/mapper/maternitymatron/JlServiceUserMapper.xml

@@ -0,0 +1,170 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.ygj.yuemum.dao.maternitymatron.JlServiceUserDao" >
+
+    <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.maternitymatron.JlServiceUser" >
+        <id column="id" property="id" jdbcType="INTEGER" />
+        <result column="password" property="password" jdbcType="VARCHAR" />
+        <result column="truename" property="truename" jdbcType="VARCHAR" />
+        <result column="mobile_phone" property="mobile_phone" jdbcType="VARCHAR" />
+        <result column="status" property="status" jdbcType="VARCHAR" />
+        <result column="last_login_time" property="last_login_time" jdbcType="DATE" />
+        <result column="last_login_ip" property="last_login_ip" jdbcType="VARCHAR" />
+        <result column="salt" property="salt" jdbcType="VARCHAR" />
+        <result column="token" property="token" jdbcType="VARCHAR" />
+        <result column="zone_code" property="zone_code" jdbcType="VARCHAR" />
+        <result column="updated_at" property="updated_at" jdbcType="DATE" />
+        <result column="stock_status" property="stock_status" jdbcType="INTEGER" />
+        <result column="usertype" property="usertype" jdbcType="VARCHAR" />
+    </resultMap>
+
+    <sql id="Base_Column_List" >
+        id, password, truename,mobile_phone,status,last_login_time,last_login_ip,salt,token,zone_code,updated_at,stock_status,usertype
+    </sql>
+
+    <!-- 得到所有的月嫂信息 -->
+    <select id="getAll" resultMap="BaseResultMap" >
+        select
+        <include refid="Base_Column_List" />
+        from jl_service_user
+    </select>
+
+    <!-- 根据id查找某个月嫂信息 -->
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from jl_service_user
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <!-- 根据id删除某个月嫂信息 -->
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from jl_service_user
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+
+    <!-- 插入一条月嫂信息 -->
+    <insert id="insertSelective" parameterType="com.ygj.yuemum.domain.maternitymatron.JlServiceUser" >
+        insert into jl_service_user
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+            <if test="password != null" >
+                password,
+            </if>
+            <if test="truename != null" >
+                truename,
+            </if>
+            <if test="mobile_phone != null" >
+                mobile_phone,
+            </if>
+            <if test="status != null" >
+                status,
+            </if>
+            <if test="last_login_time != null" >
+                last_login_time,
+            </if>
+            <if test="last_login_ip != null" >
+                last_login_ip,
+            </if>
+            <if test="salt != null" >
+                salt,
+            </if>
+            <if test="token != null" >
+                token,
+            </if>
+            <if test="zone_code != null" >
+                zone_code,
+            </if>
+            <if test="updated_at != null" >
+                updated_at,
+            </if>
+            <if test="stock_status != null" >
+                stock_status,
+            </if>
+            <if test="usertype != null" >
+                usertype,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+            <if test="password != null" >
+                #{password,jdbcType=VARCHAR},
+            </if>
+            <if test="truename != null" >
+                #{truename,jdbcType=VARCHAR},
+            </if>
+            <if test="mobile_phone != null" >
+                #{mobile_phone,jdbcType=VARCHAR},
+            </if>
+            <if test="status != null" >
+                #{status,jdbcType=VARCHAR},
+            </if>
+            <if test="last_login_time != null" >
+                #{last_login_time,jdbcType=DATE},
+            </if>
+            <if test="last_login_ip != null" >
+                #{last_login_ip,jdbcType=VARCHAR},
+            </if>
+            <if test="salt != null" >
+                #{salt,jdbcType=VARCHAR},
+            </if>
+            <if test="token != null" >
+                #{token,jdbcType=VARCHAR},
+            </if>
+            <if test="zone_code != null" >
+                #{zone_code,jdbcType=VARCHAR},
+            </if>
+            <if test="updated_at != null" >
+                #{updated_at,jdbcType=DATE},
+            </if>
+            <if test="stock_status != null" >
+                #{stock_status,jdbcType=INTEGER},
+            </if>
+            <if test="usertype != null" >
+                #{usertype,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+
+    <!-- 根据id更新一条月嫂信息 -->
+    <update id="updateByPrimaryKeySelective" parameterType="com.ygj.yuemum.domain.maternitymatron.JlServiceUser" >
+        update jl_service_user
+        <set >
+            <if test="password != null" >
+                password = #{password,jdbcType=VARCHAR},
+            </if>
+            <if test="truename != null" >
+                truename = #{truename,jdbcType=VARCHAR},
+            </if>
+            <if test="mobile_phone != null" >
+                mobile_phone = #{mobile_phone,jdbcType=VARCHAR},
+            </if>
+            <if test="status != null" >
+                status = #{status,jdbcType=VARCHAR},
+            </if>
+            <if test="last_login_time != null" >
+                last_login_time = #{last_login_time,jdbcType=DATE},
+            </if>
+            <if test="last_login_ip != null" >
+                last_login_ip = #{last_login_ip,jdbcType=VARCHAR},
+            </if>
+            <if test="salt != null" >
+                salt = #{salt,jdbcType=VARCHAR},
+            </if>
+            <if test="token != null" >
+                token = #{token,jdbcType=VARCHAR},
+            </if>
+            <if test="zone_code != null" >
+                zone_code = #{zone_code,jdbcType=VARCHAR},
+            </if>
+            <if test="updated_at != null" >
+                updated_at = #{updated_at,jdbcType=DATE},
+            </if>
+            <if test="stock_status != null" >
+                stock_status = #{stock_status,jdbcType=INTEGER},
+            </if>
+            <if test="usertype != null" >
+                usertype = #{usertype,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+
+</mapper>

+ 62 - 0
src/main/resources/mybatis/mapper/maternitymatron/JlStoreXMapper.xml

@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.ygj.yuemum.dao.maternitymatron.JlStoreXDao" >
+
+    <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.maternitymatron.JlStoreX" >
+        <result column="store_id" property="store_id" jdbcType="INTEGER" />
+        <result column="service_id" property="service_id" jdbcType="INTEGER" />
+    </resultMap>
+
+    <sql id="Base_Column_List" >
+        store_id, service_id
+    </sql>
+
+    <!-- 查询服务者服务门店 -->
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from jl_store_service
+        where service_id = #{service_id,jdbcType=INTEGER}
+    </select>
+    <!-- 根据id删除某个服务者信息 -->
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from jl_store_service
+        where service_id = #{service_id,jdbcType=INTEGER} and store_id = #{store_id,jdbcType=INTEGER}
+    </delete>
+
+    <!-- 插入一条服务者信息 -->
+    <insert id="insertSelective" parameterType="com.ygj.yuemum.domain.maternitymatron.JlStoreX" >
+        insert into jl_store_service
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+            <if test="service_id != null" >
+                service_id,
+            </if>
+            <if test="store_id != null" >
+                store_id,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+            <if test="service_id != null" >
+                #{service_id,jdbcType=INTEGER},
+            </if>
+            <if test="store_id != null" >
+                #{store_id,jdbcType=INTEGER},
+            </if>
+        </trim>
+    </insert>
+
+    <!-- 根据id更新一条照片信息 -->
+    <update id="updateByPrimaryKeySelective" parameterType="com.ygj.yuemum.domain.maternitymatron.JlStoreX" >
+        update jl_store_service
+        <set >
+            <if test="service_id != null" >
+                service_id = #{service_id,jdbcType=INTEGER},
+            </if>
+            <if test="store_id != null" >
+                store_id = #{store_id,jdbcType=INTEGER},
+            </if>
+        </set>
+        where service_id = #{service_id,jdbcType=INTEGER} and store_id = #{store_id,jdbcType=INTEGER}
+    </update>
+
+</mapper>

+ 90 - 0
src/main/resources/mybatis/mapper/maternitymatron/MmInfoCertificateMapper.xml

@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.ygj.yuemum.dao.maternitymatron.MmInfoCertificateDao" >
+
+    <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.maternitymatron.MmInfoCertificate" >
+        <id column="id" property="id" jdbcType="INTEGER" />
+        <result column="servant_code" property="servant_code" jdbcType="INTEGER" />
+        <result column="certificate_code" property="certificate_code" jdbcType="INTEGER" />
+        <result column="start_date" property="start_date" jdbcType="DATE" />
+        <result column="end_date" property="end_date" jdbcType="DATE" />
+    </resultMap>
+
+    <sql id="Base_Column_List" >
+        id, servant_code, certificate_code,start_date,end_date
+    </sql>
+
+    <!-- 得到月嫂证书信息 -->
+    <select id="getAll" resultMap="BaseResultMap" >
+        select
+        <include refid="Base_Column_List" />
+        from mm_info_certificate
+    </select>
+
+    <!-- 根据id查找月嫂证书信息 -->
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from mm_info_certificate
+        where servant_code = #{servant_code,jdbcType=INTEGER}
+    </select>
+    <!-- 根据id删除月嫂证书信息 -->
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from mm_info_certificate
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+
+    <!-- 插入一条月嫂证书信息 -->
+    <insert id="insertSelective" parameterType="com.ygj.yuemum.domain.maternitymatron.MmInfoCertificate" >
+        insert into mm_info_certificate
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+            <if test="servant_code != null" >
+                servant_code,
+            </if>
+            <if test="certificate_code != null" >
+                certificate_code,
+            </if>
+            <if test="start_date != null" >
+                start_date,
+            </if>
+            <if test="end_date != null" >
+                end_date,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+            <if test="servant_code != null" >
+                #{servant_code,jdbcType=INTEGER},
+            </if>
+            <if test="certificate_code != null" >
+                #{certificate_code,jdbcType=INTEGER},
+            </if>
+            <if test="start_date != null" >
+                #{start_date,jdbcType=DATE},
+            </if>
+            <if test="end_date != null" >
+                #{end_date,jdbcType=DATE},
+            </if>
+        </trim>
+    </insert>
+
+    <!-- 根据id更新一条月嫂证书信息 -->
+    <update id="updateByPrimaryKeySelective" parameterType="com.ygj.yuemum.domain.maternitymatron.MmInfoCertificate" >
+        update mm_info_certificate
+        <set >
+            <if test="servant_code != null" >
+                servant_code = #{servant_code,jdbcType=VARCHAR},
+            </if>
+            <if test="certificate_code != null" >
+                certificate_code = #{certificate_code,jdbcType=VARCHAR},
+            </if>
+            <if test="start_date != null" >
+                start_date = #{start_date,jdbcType=INTEGER},
+            </if>
+            <if test="end_date != null" >
+                end_date = #{end_date,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+
+</mapper>

+ 81 - 0
src/main/resources/mybatis/mapper/maternitymatron/MmInfoPhotoMapper.xml

@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.ygj.yuemum.dao.maternitymatron.MmInfoPhotoDao" >
+
+    <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.maternitymatron.MmInfoPhoto" >
+        <id column="id" property="id" jdbcType="INTEGER" />
+        <result column="servant_code" property="servant_code" jdbcType="INTEGER" />
+        <result column="photo_title" property="photo_title" jdbcType="INTEGER" />
+        <result column="photo_code" property="photo_code" jdbcType="INTEGER" />
+        <result column="photo_path" property="photo_path" jdbcType="VARCHAR" />
+    </resultMap>
+
+    <sql id="Base_Column_List" >
+        id, servant_code, photo_code,photo_path
+    </sql>
+
+    <!-- 得到所有的照片信息 -->
+    <select id="getAll" resultMap="BaseResultMap" >
+        select
+        <include refid="Base_Column_List" />
+        from mm_info_photo
+    </select>
+
+    <!-- 根据id查找某个照片信息 -->
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from mm_info_photo
+        where servant_code = #{servant_code,jdbcType=INTEGER}
+    </select>
+    <!-- 根据id删除某个照片信息 -->
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from mm_info_photo
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+
+    <!-- 插入一条照片信息 -->
+    <insert id="insertSelective" parameterType="com.ygj.yuemum.domain.maternitymatron.MmInfoPhoto" >
+        insert into mm_info_photo
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+            <if test="servant_code != null" >
+                servant_code,
+            </if>
+            <if test="photo_code != null" >
+                photo_code,
+            </if>
+            <if test="photo_path != null" >
+                photo_path,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+            <if test="servant_code != null" >
+                #{servant_code,jdbcType=INTEGER},
+            </if>
+            <if test="photo_code != null" >
+                #{photo_code,jdbcType=INTEGER},
+            </if>
+            <if test="photo_path != null" >
+                #{photo_path,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+
+    <!-- 根据id更新一条照片信息 -->
+    <update id="updateByPrimaryKeySelective" parameterType="com.ygj.yuemum.domain.maternitymatron.MmInfoPhoto" >
+        update mm_info_photo
+        <set >
+            <if test="servant_code != null" >
+                servant_code = #{servant_code,jdbcType=INTEGER},
+            </if>
+            <if test="photo_code != null" >
+                photo_code = #{photo_code,jdbcType=INTEGER},
+            </if>
+            <if test="photo_path != null" >
+                photo_path = #{photo_path,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+
+</mapper>

+ 80 - 0
src/main/resources/mybatis/mapper/maternitymatron/MmInfoResumeMapper.xml

@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.ygj.yuemum.dao.maternitymatron.MmInfoResumeDao" >
+
+    <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.maternitymatron.MmInfoResume" >
+        <id column="id" property="id" jdbcType="INTEGER" />
+        <result column="servant_code" property="servant_code" jdbcType="INTEGER" />
+        <result column="resume_code" property="resume_code" jdbcType="INTEGER" />
+        <result column="resume_path" property="resume_path" jdbcType="VARCHAR" />
+    </resultMap>
+
+    <sql id="Base_Column_List" >
+        id, servant_code, resume_code,resume_path
+    </sql>
+
+    <!-- 得到所有的简历信息 -->
+    <select id="getAll" resultMap="BaseResultMap" >
+        select
+        <include refid="Base_Column_List" />
+        from mm_info_resume
+    </select>
+
+    <!-- 根据id查找某个简历信息 -->
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from mm_info_resume
+        where servant_code = #{servant_code,jdbcType=INTEGER}
+    </select>
+    <!-- 根据id删除某个简历信息 -->
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from mm_info_resume
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+
+    <!-- 插入一条简历信息 -->
+    <insert id="insertSelective" parameterType="com.ygj.yuemum.domain.maternitymatron.MmInfoResume" >
+        insert into mm_info_resume
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+            <if test="servant_code != null" >
+                servant_code,
+            </if>
+            <if test="resume_code != null" >
+                resume_code,
+            </if>
+            <if test="resume_path != null" >
+                resume_path,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+            <if test="servant_code != null" >
+                #{servant_code,jdbcType=INTEGER},
+            </if>
+            <if test="resume_code != null" >
+                #{resume_code,jdbcType=INTEGER},
+            </if>
+            <if test="resume_path != null" >
+                #{resume_path,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+
+    <!-- 根据id更新一条简历信息 -->
+    <update id="updateByPrimaryKeySelective" parameterType="com.ygj.yuemum.domain.maternitymatron.MmInfoResume" >
+        update mm_info_resume
+        <set >
+            <if test="servant_code != null" >
+                servant_code = #{servant_code,jdbcType=INTEGER},
+            </if>
+            <if test="resume_code != null" >
+                resume_code = #{resume_code,jdbcType=INTEGER},
+            </if>
+            <if test="resume_path != null" >
+                resume_path = #{resume_path,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+
+</mapper>

+ 90 - 0
src/main/resources/mybatis/mapper/maternitymatron/MmInfoTrainMapper.xml

@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.ygj.yuemum.dao.maternitymatron.MmInfoTrainDao" >
+
+    <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.maternitymatron.MmInfoTrain" >
+        <id column="id" property="id" jdbcType="INTEGER" />
+        <result column="servant_code" property="servant_code" jdbcType="INTEGER" />
+        <result column="train_code" property="train_code" jdbcType="INTEGER" />
+        <result column="train_date" property="train_date" jdbcType="DATE" />
+        <result column="train_result" property="train_result" jdbcType="VARCHAR" />
+    </resultMap>
+
+    <sql id="Base_Column_List" >
+        id, servant_code, train_code,train_date,train_result
+    </sql>
+
+    <!-- 得到所有的照片信息 -->
+    <select id="getAll" resultMap="BaseResultMap" >
+        select
+        <include refid="Base_Column_List" />
+        from mm_info_train
+    </select>
+
+    <!-- 根据id查找某个照片信息 -->
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from mm_info_train
+        where servant_code = #{servant_code,jdbcType=INTEGER}
+    </select>
+    <!-- 根据id删除某个照片信息 -->
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from mm_info_train
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+
+    <!-- 插入一条照片信息 -->
+    <insert id="insertSelective" parameterType="com.ygj.yuemum.domain.maternitymatron.MmInfoTrain" >
+        insert into mm_info_train
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+            <if test="servant_code != null" >
+                servant_code,
+            </if>
+            <if test="train_code != null" >
+                train_code,
+            </if>
+            <if test="train_date != null" >
+                train_date,
+            </if>
+            <if test="train_result != null" >
+                train_result,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+            <if test="servant_code != null" >
+                #{servant_code,jdbcType=INTEGER},
+            </if>
+            <if test="train_code != null" >
+                #{train_code,jdbcType=INTEGER},
+            </if>
+            <if test="train_date != null" >
+                #{train_date,jdbcType=DATE},
+            </if>
+            <if test="train_result != null" >
+                #{train_result,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+
+    <!-- 根据id更新一条照片信息 -->
+    <update id="updateByPrimaryKeySelective" parameterType="com.ygj.yuemum.domain.maternitymatron.MmInfoTrain" >
+        update mm_info_train
+        <set >
+            <if test="servant_code != null" >
+                servant_code = #{servant_code,jdbcType=INTEGER},
+            </if>
+            <if test="train_code != null" >
+                train_code = #{train_code,jdbcType=VARCHAR},
+            </if>
+            <if test="train_date != null" >
+                train_date = #{train_date,jdbcType=DATE},
+            </if>
+            <if test="train_result != null" >
+                train_result = #{train_result,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+
+</mapper>

+ 90 - 0
src/main/resources/mybatis/mapper/maternitymatron/MmStockMapper.xml

@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.ygj.yuemum.dao.maternitymatron.MmStockDao" >
+
+    <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.maternitymatron.MmStock" >
+        <id column="id" property="id" jdbcType="INTEGER" />
+        <result column="servant_code" property="servant_code" jdbcType="INTEGER" />
+        <result column="stock_status" property="stock_status" jdbcType="INTEGER" />
+        <result column="start_date" property="start_date" jdbcType="DATE" />
+        <result column="end_date" property="end_date" jdbcType="DATE" />
+    </resultMap>
+
+    <sql id="Base_Column_List" >
+        id, servant_code, stock_status,start_date,end_date
+    </sql>
+
+    <!-- 得到所有的库存信息 -->
+    <select id="getAll" resultMap="BaseResultMap" >
+        select
+        <include refid="Base_Column_List" />
+        from mm_stock
+    </select>
+
+    <!-- 根据id查找某个库存信息 -->
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from mm_stock
+        where servant_code = #{servant_code,jdbcType=INTEGER}
+    </select>
+    <!-- 根据id删除某个库存信息 -->
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from mm_stock
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+
+    <!-- 插入一条库存信息 -->
+    <insert id="insertSelective" parameterType="com.ygj.yuemum.domain.maternitymatron.MmStock" >
+        insert into mm_stock
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+            <if test="servant_code != null" >
+                servant_code,
+            </if>
+            <if test="stock_status != null" >
+                stock_status,
+            </if>
+            <if test="start_date != null" >
+                start_date,
+            </if>
+            <if test="end_date != null" >
+                end_date,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+            <if test="servant_code != null" >
+                #{servant_code,jdbcType=INTEGER},
+            </if>
+            <if test="stock_status != null" >
+                #{stock_status,jdbcType=INTEGER},
+            </if>
+            <if test="start_date != null" >
+                #{start_date,jdbcType=DATE},
+            </if>
+            <if test="end_date != null" >
+                #{end_date,jdbcType=DATE},
+            </if>
+        </trim>
+    </insert>
+
+    <!-- 根据id更新一条库存信息 -->
+    <update id="updateByPrimaryKeySelective" parameterType="com.ygj.yuemum.domain.maternitymatron.MmStock" >
+        update mm_stock
+        <set >
+            <if test="servant_code != null" >
+                servant_code = #{servant_code,jdbcType=INTEGER},
+            </if>
+            <if test="stock_status != null" >
+                stock_status = #{stock_status,jdbcType=INTEGER},
+            </if>
+            <if test="start_date != null" >
+                start_date = #{start_date,jdbcType=DATE},
+            </if>
+            <if test="end_date != null" >
+                end_date = #{end_date,jdbcType=DATE},
+            </if>
+        </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+
+</mapper>