Преглед на файлове

bug:核情况统计表中灌南东收费站的8月份平均得分与收费站统计报表中灌南东收费站的8月份平均得分不一致

温红权 преди 8 години
родител
ревизия
b8b58247d1

+ 3 - 3
VisualInspection/js/statistics/road_manage_statistics.js

@@ -793,7 +793,7 @@ $(function() {
                     name: '访问来源',
                     type: 'pie',
                     selectedMode: 'single',
-                    radius: [0, 50],
+                    radius: [0, 80],
 
                     // for funnel
                     x: '20%',
@@ -814,7 +814,7 @@ $(function() {
                             },
                             labelLine: {
                                 show: true,
-                                length: 20,
+                                length: 90,
                                 lineStyle: {
                                     color: '#888'
                                 }
@@ -827,7 +827,7 @@ $(function() {
                 {
                     name: '访问来源',
                     type: 'pie',
-                    radius: [150, 190],
+                    radius: [100, 140],
 
                     // for funnel
                     x: '60%',

+ 3 - 1
VisualInspection/js/statistics/toll_station_statistics.js

@@ -267,6 +267,8 @@
      	                for (var i = 0; i < data.length; i++) {
      	                    if (months.indexOf(data[i].mth.substr(2))) {
      	                        // 指定位置插入值
+
+     	                        console.log(data[i])
      	                        array_year_score.splice(months.indexOf(data[i].mth.substr(2)), 0,
      	                            (1000 - (filter_handler(data[i].all_check_score, data[i].checked_num, data[i].people_num, 0))));
      	                    }
@@ -569,7 +571,7 @@
      	        if (num1 == 0 || num2 == 0) {
      	            return num3;
      	        } else {
-     	            return ((num / num1) / num2).toFixed(2);
+     	            return ((num / num1 * 1.0)).toFixed(2);
      	        }
      	    }
 

+ 3 - 3
VisualInspection/js/statistics/total_company_statistics.js

@@ -719,7 +719,7 @@ $(function() {
                     name: '访问来源',
                     type: 'pie',
                     selectedMode: 'single',
-                    radius: [0, 50],
+                    radius: [0, 80],
 
                     // for funnel
                     x: '20%',
@@ -740,7 +740,7 @@ $(function() {
                             },
                             labelLine: {
                                 show: true,
-                                length: 20,
+                                length: 90,
                                 lineStyle: {
                                     color: '#888'
                                 }
@@ -753,7 +753,7 @@ $(function() {
                 {
                     name: '访问来源',
                     type: 'pie',
-                    radius: [150, 190],
+                    radius: [100, 140],
 
                     // for funnel
                     x: '60%',

+ 60 - 2
VisualInspection_server/src/main/java/com/xintong/visualinspection/mapper/master/StatisticsMapper.xml

@@ -109,7 +109,7 @@
 		        AND	 t.start_time &gt;= #{start_date} AND t.end_time &lt; #{end_date}
 			</if>
 			<if test="position_ids != null and position_ids.size() > 0">
-        		AND u.positionid in 
+        		AND u.positionid in
         		<foreach collection="position_ids" item="position_id" index="index"
 		            open="(" close=")" separator=",">
 		            #{position_id}
@@ -204,9 +204,67 @@
 		) check_num_t ON checked_score_t.checked_person = check_num_t.checked_person
 		AND check_num_t.mth = checked_score_t.mth
      </sql>
+
+
+    <!--包含未扣分的-->
+    <sql id="selectAllCheckedInfoAllCheck">
+        SELECT
+        check_num_t.checked_num , check_num_t.mth, IFNULL(checked_score_t.checkd_all_score ,0) as checkd_all_score, check_num_t.checked_person,check_num_t.checked_dept
+        FROM
+
+        (
+        SELECT
+        COUNT(t.checked_person) AS checked_num,
+        t.checked_person,
+        monthfunc (t.start_time) AS mth,
+        t.id,t.checked_dept
+        FROM
+        check_task t
+        WHERE
+        t.checked_person IS NOT NULL
+        AND t.check_status != 22  and t.id not in <include refid="taskexclouddeleteUser"/>
+        <if test="start_date !=null">
+            AND t.start_time >= #{start_date}
+        </if>
+        <if test="end_date !=null">
+            AND t.end_time &lt; #{end_date}
+        </if>
+        <if test="mth!=null and mth!=''">
+            AND monthfunc (t.start_time) =#{mth}
+        </if>
+        GROUP BY
+        t.checked_person,
+        mth
+        ) check_num_t
+
+        LEFT JOIN  (
+        SELECT
+        monthfunc (t.start_time) AS mth,
+        sum(m.check_item_score) AS checkd_all_score, m.*
+        FROM
+        check_score m INNER JOIN
+        ( select * From check_task t
+        where t.check_status != 22 and t.id not in <include refid="taskexclouddeleteUser"/>
+        <if test="start_date !=null">
+            AND t.start_time >= #{start_date}
+        </if>
+        <if test="end_date !=null">
+            AND t.end_time &lt; #{end_date}
+        </if>
+        <if test="mth!=null and mth!=''">
+            AND monthfunc (t.start_time) =#{mth}
+        </if>
+        ) t
+        ON m.task_id = t.id
+        WHERE 1=1
+        GROUP BY mth , m.checked_person
+
+        ) checked_score_t  ON checked_score_t.checked_person = check_num_t.checked_person
+        AND check_num_t.mth = checked_score_t.mth
+    </sql>
     
     <select id="selectYearScoreInfo" parameterType="com.xintong.visualinspection.bean.StatisticsBean" resultType="com.xintong.visualinspection.bean.StatisticsBean">
-    	SELECT sum(tab.checkd_all_score) AS all_check_score  , sum(tab.checked_num) AS checked_num  , tab.mth FROM ( <include refid="selectAllCheckedInfo" />  ) tab 
+    	SELECT sum(tab.checkd_all_score) AS all_check_score  , sum(tab.checked_num) AS checked_num  , tab.mth FROM ( <include refid="selectAllCheckedInfoAllCheck" />  ) tab
     	WHERE 1=1 
     	<if test="dept_list!=null and queryType == 1 and dept_list.size()>0 ">
     		AND	tab.checked_dept IN

+ 15 - 0
VisualInspection_server/src/main/java/com/xintong/visualinspection/service/impl/StatisticsServiceImpl.java

@@ -748,10 +748,25 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
 			}
 		}
 
+//        Constant t = CodeUtil.getCodeByFlagAndValue("feestation_check_jobs", "1");
+//        String[] postions = t.getCode_name().split(",");
+//        List<Integer> positionList = new ArrayList<Integer>();
+//        for (int i = 0; i < postions.length; i++) {
+//            positionList.add(Integer.parseInt(postions[i]));
+//        }
+//        //未计算未扣分的稽查次数
+//        obj.setPosition_ids(positionList);
+//        List<StatisticsBean> listCheckNum = statisticsDao.selectFeeStationCheckNum(obj);
+
+
 		List<StatisticsBean> lists = statisticsDao.selectYearScoreInfo(obj);
 		for (StatisticsBean sta : lists) {
 			sta.setPeople_num(people_num);
 		}
+
+
+
+
 		return lists;
 	}
 

+ 3 - 3
VisualInspection_server/src/main/resources/application.properties

@@ -3,7 +3,7 @@ spring.thymeleaf.cache=false
 context.listener.classes=com.xintong.SystemInit
 
 #master.datasource.url = jdbc:mysql://10.112.0.199:3306/visualinspection?useUnicode=true&characterEncoding=utf-8
-master.datasource.url = jdbc:mysql://git.topm.win:6381/visualinspection?useUnicode=true&characterEncoding=utf-8
+master.datasource.url = jdbc:mysql://git.topm.win:6400/visualinspection?useUnicode=true&characterEncoding=utf-8
 #master.datasource.url = jdbc:mysql://10.112.0.199:7002/visualinspection?useUnicode=true&characterEncoding=utf-8
 master.datasource.username = root
 master.datasource.password = root
@@ -12,7 +12,7 @@ master.mapper-locations=classpath:com/xintong/visualinspection/mapper/master/*.x
 
 ## \u7528\u6237\u6570\u636E\u6E90\u914D\u7F6E
 #cluster.datasource.url=jdbc:mysql://10.112.0.199:3306/visualinspection?useUnicode=true&characterEncoding=utf8
-cluster.datasource.url=jdbc:mysql://git.topm.win:6381/visualinspection?useUnicode=true&characterEncoding=utf8
+cluster.datasource.url=jdbc:mysql://git.topm.win:6400/visualinspection?useUnicode=true&characterEncoding=utf8
 #cluster.datasource.url=jdbc:mysql://10.112.0.199:7002/visualinspection?useUnicode=true&characterEncoding=utf8
 cluster.datasource.username=root
 cluster.datasource.password=root
@@ -60,7 +60,7 @@ spring.redis.host=git.topm.win
 #spring.redis.port=7003
 
 #spring.redis.port=7003
-spring.redis.port=6380 
+spring.redis.port=6401 
 # Redis\u670D\u52A1\u5668\u8FDE\u63A5\u5BC6\u7801\uFF08\u9ED8\u8BA4\u4E3A\u7A7A\uFF09
 spring.redis.password=xintong
 # \u8FDE\u63A5\u6C60\u6700\u5927\u8FDE\u63A5\u6570\uFF08\u4F7F\u7528\u8D1F\u503C\u8868\u793A\u6CA1\u6709\u9650\u5236\uFF09