|
@@ -9,6 +9,7 @@
|
|
package com.zskk.shop.service;
|
|
package com.zskk.shop.service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
|
+import java.util.Arrays;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
@@ -32,6 +33,31 @@ import com.zskk.shop.utils.ToolsUtil;
|
|
|
|
|
|
@Service
|
|
@Service
|
|
public class FamilyPeopleService {
|
|
public class FamilyPeopleService {
|
|
|
|
+ /**
|
|
|
|
+ * 已退款
|
|
|
|
+ */
|
|
|
|
+ public static final Integer APPOINTMENT_STATUS_REFUND = -3;
|
|
|
|
+ /**
|
|
|
|
+ * 取消预约状态
|
|
|
|
+ */
|
|
|
|
+ public static final Integer APPOINTMENT_STATUS_CANCEL = -2;
|
|
|
|
+ /**
|
|
|
|
+ * 预约
|
|
|
|
+ */
|
|
|
|
+ public static final Integer APPOINTMENT_STATUS_ED = -1;
|
|
|
|
+ /**
|
|
|
|
+ * 已登记
|
|
|
|
+ */
|
|
|
|
+ public static final Integer APPOINTMENT_STATUS_REGISTER = 0;
|
|
|
|
+ /**
|
|
|
|
+ * 体检完成
|
|
|
|
+ */
|
|
|
|
+ public static final Integer APPOINTMENT_STATUS_COMPLETED = 1;
|
|
|
|
+ /**
|
|
|
|
+ * 总检报告已出
|
|
|
|
+ */
|
|
|
|
+ public static final Integer APPOINTMENT_STATUS_EXPORT=2;
|
|
|
|
+
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private FamilyPeopleMapper familyPeopleMapper;
|
|
private FamilyPeopleMapper familyPeopleMapper;
|
|
@@ -267,5 +293,21 @@ public class FamilyPeopleService {
|
|
return beans;
|
|
return beans;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 获取已预约的数量
|
|
|
|
+ * @param uid
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public Integer queryAppointmentedCount(String uid){
|
|
|
|
+ return familyPeopleMapper.queryAppointmentCountByStatus(uid, Arrays.asList(APPOINTMENT_STATUS_ED));
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 获取已出报告数量
|
|
|
|
+ * @param uid
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public Integer queryExportCount(String uid){
|
|
|
|
+ return familyPeopleMapper.queryAppointmentCountByStatus(uid, Arrays.asList(APPOINTMENT_STATUS_EXPORT));
|
|
|
|
+ }
|
|
}
|
|
}
|