|
@@ -32,7 +32,7 @@ public interface SmsCheckWorkLogMapper extends BaseMapper<SmsCheckWorkLog> {
|
|
|
|
|
|
|
|
|
|
|
|
|
@SelectProvider(type = SmsCheckWorkLogProvider.class,method = "basicCheckStateCount")
|
|
@SelectProvider(type = SmsCheckWorkLogProvider.class,method = "basicCheckStateCount")
|
|
|
- List<AbnormalAudit> basicCheckStateCount(String startDate, String endDate, String infoId);
|
|
|
|
|
|
|
+ List<AbnormalAudit> basicCheckStateCount(String startDate, String endDate, String infoId,String type);
|
|
|
|
|
|
|
|
@SelectProvider(type = SmsCheckWorkLogProvider.class,method = "standardCheckStateCount")
|
|
@SelectProvider(type = SmsCheckWorkLogProvider.class,method = "standardCheckStateCount")
|
|
|
List<AbnormalAudit> standardCheckStateCount(String startDate, String endDate, String infoId);
|
|
List<AbnormalAudit> standardCheckStateCount(String startDate, String endDate, String infoId);
|
|
@@ -41,7 +41,7 @@ public interface SmsCheckWorkLogMapper extends BaseMapper<SmsCheckWorkLog> {
|
|
|
List<AbnormalAudit> dataCheckStateCount(String startDate, String endDate, String infoId);
|
|
List<AbnormalAudit> dataCheckStateCount(String startDate, String endDate, String infoId);
|
|
|
|
|
|
|
|
@SelectProvider(type = SmsCheckWorkLogProvider.class,method = "abnormalCreateCount")
|
|
@SelectProvider(type = SmsCheckWorkLogProvider.class,method = "abnormalCreateCount")
|
|
|
- List<AbnormalAudit> abnormalCreateCount(String startDate, String endDate, String infoId);
|
|
|
|
|
|
|
+ List<AbnormalAudit> abnormalCreateCount(String startDate, String endDate, String infoId,String taskType);
|
|
|
|
|
|
|
|
|
|
|
|
|
@SelectProvider(type = SmsCheckWorkLogProvider.class,method = "findStaffNoCount")
|
|
@SelectProvider(type = SmsCheckWorkLogProvider.class,method = "findStaffNoCount")
|
|
@@ -94,11 +94,12 @@ public interface SmsCheckWorkLogMapper extends BaseMapper<SmsCheckWorkLog> {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
- public String basicCheckStateCount(String startDate, String endDate, String infoId){
|
|
|
|
|
|
|
+ public String basicCheckStateCount(String startDate, String endDate, String infoId,String type){
|
|
|
StringBuilder sql = new StringBuilder();
|
|
StringBuilder sql = new StringBuilder();
|
|
|
sql.append("SELECT scwl.basic_check_state as state, COUNT(scwl.basic_check_state) as count ");
|
|
sql.append("SELECT scwl.basic_check_state as state, COUNT(scwl.basic_check_state) as count ");
|
|
|
sql.append(" FROM sms_check_customer_info scci ");
|
|
sql.append(" FROM sms_check_customer_info scci ");
|
|
|
sql.append(" LEFT JOIN sms_check_work_log scwl ON scci.id = scwl.info_id ");
|
|
sql.append(" LEFT JOIN sms_check_work_log scwl ON scci.id = scwl.info_id ");
|
|
|
|
|
+ sql.append(" LEFT JOIN sms_check_task on sms_check_task.id =scci.task_id ");
|
|
|
sql.append(" WHERE scwl.basic_check_state is not NULL ");
|
|
sql.append(" WHERE scwl.basic_check_state is not NULL ");
|
|
|
/*if (!StringUtils.isEmpty(startDate)){
|
|
/*if (!StringUtils.isEmpty(startDate)){
|
|
|
sql.append(" AND scci.create_time >= '"+startDate+"' ");
|
|
sql.append(" AND scci.create_time >= '"+startDate+"' ");
|
|
@@ -106,7 +107,9 @@ public interface SmsCheckWorkLogMapper extends BaseMapper<SmsCheckWorkLog> {
|
|
|
if (!StringUtils.isEmpty(endDate)){
|
|
if (!StringUtils.isEmpty(endDate)){
|
|
|
sql.append(" AND scci.create_time <='" + endDate+"' ");
|
|
sql.append(" AND scci.create_time <='" + endDate+"' ");
|
|
|
}*/
|
|
}*/
|
|
|
-
|
|
|
|
|
|
|
+ if (!StringUtils.isEmpty(type)){
|
|
|
|
|
+ sql.append(" AND sms_check_task.type = " + type + " ");
|
|
|
|
|
+ }
|
|
|
if (!StringUtils.isEmpty(infoId)){
|
|
if (!StringUtils.isEmpty(infoId)){
|
|
|
sql.append(" AND scwl.info_id = '" + infoId + "' ");
|
|
sql.append(" AND scwl.info_id = '" + infoId + "' ");
|
|
|
}
|
|
}
|