tyb vor 2 Monaten
Ursprung
Commit
75cb23211c

+ 6 - 0
src/main/java/com/jzlife/report/controller/NannyController.java

@@ -36,4 +36,10 @@ public class NannyController {
     public Object getServiceModelData(@RequestBody NannyVo nannyVo){
         return sanSaoService.getServiceModelData(nannyVo);
     }
+    @ApiOperation("获取三嫂业务来源")
+    @GetMapping("getSource")
+    public Object getSource(){
+        return sanSaoService.getSource();
+    }
+
 }

+ 2 - 0
src/main/java/com/jzlife/report/dao/reports/TTempClueMapper.java

@@ -24,4 +24,6 @@ public interface TTempClueMapper {
 
 
     List<Map<String,Object>> getOrderKdMoneyByServiceModel(NannyVo NannyVo);
+
+    List<Map<String,Object>> getSource();
 }

+ 2 - 0
src/main/java/com/jzlife/report/service/nurse/SanSaoService.java

@@ -17,4 +17,6 @@ public interface SanSaoService {
     Object getCityData(NannyVo nannyVo);
 
     Object getServiceModelData( NannyVo nannyVo);
+
+    Object getSource();
 }

+ 4 - 0
src/main/java/com/jzlife/report/service/nurse/impl/SanSaoServiceImpl.java

@@ -303,6 +303,10 @@ public class SanSaoServiceImpl implements SanSaoService {
 
     }
 
+    public Object getSource(){
+      return ResponseUtil.ok(tTempClueMapper.getSource());
+    }
+
     private void getDate(NannyVo nannyVo){
         if (nannyVo.getDateType()==null || nannyVo.getDateType()==3) {
             //上月

+ 5 - 1
src/main/resources/mybatis/mapper/reports/TTempClueMapper.xml

@@ -248,5 +248,9 @@
           AND #{endDate}
         group by a.service_model order by payAmount desc
     </select>
-
+    <select id="getSource" resultType="map">
+        select id, source_name as sourceName
+        from jlife_nurse.jzbm_source
+        where deleted = false and type =1
+    </select>
 </mapper>