MSI\liwei 7 年之前
父节点
当前提交
c5b4f757b4
共有 13 个文件被更改,包括 191 次插入392 次删除
  1. 45 3
      VisualInspection/fwq/js/task/apply_task.js
  2. 2 8
      VisualInspection/qzd/js/task/check.js
  3. 24 2
      VisualInspection_server/src/main/java/com/xintong/visualinspection/controller/CheckRuleController.java
  4. 4 4
      VisualInspection_server/src/main/java/com/xintong/visualinspection/controller/gettway/CheckApplyController_F.java
  5. 1 1
      Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/controller/FileExcelController_F.java
  6. 8 0
      Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/mapper/master/CheckApplylMapper.xml
  7. 2 3
      Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/mapper/master/CheckDeptStatisticsMapper.xml
  8. 35 140
      Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/mapper/master/StatisticsMapper.xml
  9. 1 0
      Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/mapper/master/TaskMapper.xml
  10. 0 7
      Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/service/StatisticsService_F.java
  11. 60 84
      Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/service/impl/StatisticsServiceImpl.java
  12. 5 140
      Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/service/impl/StatisticsService_FImpl.java
  13. 4 0
      Visuallnspection_fjq/visuallnspectioninteface/src/main/java/com/xintong/visualinspection/bean/CheckApply_F.java

+ 45 - 3
VisualInspection/fwq/js/task/apply_task.js

@@ -1,3 +1,5 @@
+var cur_page;
+
 function initApplyPage() {
     // 仅选择日期
     $.jeDate("#start_time", {
@@ -8,6 +10,32 @@ function initApplyPage() {
 
     setSASelect("#fsList");
 
+    var store_params = $.zui.store.get('store_param_' + current_url);
+    var checked_dept = null;
+    if (store_params) {
+        checked_dept = store_params.checked_dept;
+        // $("#start_time").val(store_params.end_time.substr(0, 7));
+        $("#start_time").val(store_params.end_time.substr(0, 7));
+       if(store_params.invalidFrom == -2){
+            $("#check_zc").attr("checked", false);
+            $("#check_ss").attr("checked", false);
+       }else if(store_params.invalidFrom == 1){
+            $("#check_zc").attr("checked", false);
+            $("#check_ss").attr("checked", true);
+       }else if(store_params.invalidFrom == 0){
+        $("#check_zc").attr("checked", true);
+        $("#check_ss").attr("checked", false);
+       }else if(store_params.invalidFrom == -1){
+        $("#check_zc").attr("checked", true);
+        $("#check_ss").attr("checked", true);
+       }
+       console.log(store_params);
+       var pager = $.zui.store.get("pager");
+       console.log(pager);
+       cur_page = pager.p_cur;
+    } else {
+        $("#start_time").val(getCurrentTimeFormat());
+    }
 
     var page_params = $.zui.store.get("page_params");
     if (page_params && page_params.status) {
@@ -87,8 +115,12 @@ function queryUnexaminedTask() {
         'cols': cols,
         'checkable': checkable,
         'url': "/f/task/getall/",
-        'param': data
+        'param': data,
+        'pager': {
+            'p_cur': cur_page
+        }
     });
+    $.zui.store.set('store_param_' + current_url, data);
 }
 //进入稽查页面
 function showCheck(id) {
@@ -186,8 +218,18 @@ function refuseApply(taskId) {
 }
 
 function agreeApplyTaskPatch() {
+    var check_ss = $("#check_ss").prop("checked");
+    var check_zc = $("#check_zc").prop("checked");
+    var t = getTimeByMonth($("#start_time").val());
     var param = {
-        'apply_ids': $('#unexamined_datatable').mytable('getTableCheckedIds')
+        "start_time": new Date(t.starttime),
+        "end_time": new Date(t.endtime),
+        "checked_dept": $("#fsList").val(),
+        "invalidFrom": (check_ss && check_zc) ? -1 : (check_ss ? 1 : (check_zc ? 0 : -2))
+        // 'apply_ids': $('#unexamined_datatable').mytable('getTableCheckedIds')
     };
-    addOrUpdateItem4Common(param, '/f/checkApply/agreePatch', queryUnexaminedTask);
+    con=confirm("确定全部无效?");
+    if(con == true){
+        addOrUpdateItem4Common(param, '/f/checkApply/agreePatch', queryUnexaminedTask);
+    }
 }

+ 2 - 8
VisualInspection/qzd/js/task/check.js

@@ -5,7 +5,6 @@ var videoid;
 function dbclick() {
 
     if (isfullscreen) {
-        console.log(isfullscreen);
         if (layer_full) {
             layer.close(layer_full);
             videoPlayer.videoPlay();
@@ -130,11 +129,12 @@ function initCheck() {
             variable: 'player', //该属性必需设置,值等于下面的new chplayer()的对象
             //poster: 'pic/wdm.jpg', //封面图片
             autoplay: true,
+           // loaded:'loadedHandler',//监听播放器加载成功
             video: base_image_server_url + videoid //视频地址
            // video: "file:///H://N3J4803_00030220180708095248_1289.MP4"   //视频地址
         };
         videoPlayer = new ckplayer(videoObject);
-       // videoPlayer.addListener('time', timeHandler);
+        videoPlayer.addListener('time', timeHandler);
     }else {
            $(".nav-secondary").hide();
     }
@@ -168,7 +168,6 @@ function initCheck() {
 
 function onvideoselect(obj) {
     videoid = (obj.value);
-    console.log(videoid)
     var videoObject = {
         container: '.video', //“#”代表容器的ID,“.”或“”代表容器的class
         variable: 'player', //该属性必需设置,值等于下面的new chplayer()的对象
@@ -253,7 +252,6 @@ function getAreaCheckCount() {
     var url = base_server_url + "/q/task/getTasks/0/0";
     ajaxPost(url, param, function(response) {
         for (var i in userids) {
-            // console.log(response);
             var html = '<label id="' + userids[i] + '"></label>' + usernames[i] + '(次数:' +
                 '<a href="javascript:void(0)" onclick="showCheckDetailCount(\'' + userids[i] + '\')"><span class="label label-primary" id="">' + response[i].length + '</span></a>)';
             $("#checked_area").append(html);
@@ -410,7 +408,6 @@ function showEditCheckScore(id) {
     var list = new Array();
     var userids = $.checkTask.checked_users.split(",");
     var usernames = $.checkTask.checked_users_name.split(",");
-    console.log(rowData);
     var optStr = '';
     for (var i in userids) {
         if (userids[i] == rowData.checked_area)
@@ -468,7 +465,6 @@ function saveScoreEdit() {
     };
     editScoreId = null;
     $("#saveEditBtn").hide();
-    console.log(param);
     no_return_common_service("/q/score/update", param, function(data) {
         if (scoreLayer) layer.close(scoreLayer);
         //查询评分情况
@@ -692,13 +688,11 @@ var scoreLayer;
 function showScore() {
     scoreLayer = showPopup4Common('选择考核项', function(data) {
         var nodes = check_item_tree.getSelectedNodes()[0];
-        console.log(nodes);
         var data = {
             "content": nodes.value,
             "check_item_score": nodes.score,
             "checked_person_name": $.checkTask.checkman_name
         }
-        console.log(data);
     }, ['400px', '500px'], '#items-div', 'r');
     buildTree();
 }

+ 24 - 2
VisualInspection_server/src/main/java/com/xintong/visualinspection/controller/CheckRuleController.java

@@ -6,6 +6,7 @@ import com.mysql.jdbc.StringUtils;
 import com.xintong.system.err.BusinessException;
 import com.xintong.visualinspection.bean.CheckItem;
 import com.xintong.visualinspection.bean.CheckRule;
+import com.xintong.visualinspection.bean.User;
 import com.xintong.visualinspection.service.CheckRuleService;
 import com.xintong.visualinspection.service.ItemService;
 import com.xintong.visualinspection.util.CacheUtil;
@@ -15,7 +16,9 @@ import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
+import javax.servlet.http.HttpServletRequest;
 import javax.validation.Valid;
+import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -41,10 +44,29 @@ public class CheckRuleController extends BaseController {
      * @since  1.0.0
      */
     @RequestMapping(value = "/getAllRule/{page}/{size}")
-    public String getAllRules(@Valid @RequestBody CheckRule checkRule,@PathVariable Integer page,@PathVariable Integer size){
+    public String getAllRules(HttpServletRequest request,@Valid @RequestBody CheckRule checkRule, @PathVariable Integer page, @PathVariable Integer size){
+		User user = getCurrentUser(request);
     	PageHelper.startPage(page, size); 
     	List<CheckRule> crList = checkRuleService.getAllAndCountItem(checkRule);
-    	return super.returnSuccessResult(new PageInfo(crList));
+		List<CheckRule> aList = new ArrayList<>();
+    	for(CheckRule c :crList){
+            if(user.getPositionid() == 22){
+                if(c.getChecked_person_type().equals("3")){
+                     aList.add(c);
+				}
+			}else if(user.getPositionid() == 23){
+				if(c.getChecked_person_type().equals("2")){
+					aList.add(c);
+				}
+			}else if(user.getPositionid() == 24){
+				if(c.getChecked_person_type().equals("1")){
+					aList.add(c);
+				}
+			}else{
+            	aList.add(c);
+			}
+		}
+    	return super.returnSuccessResult(new PageInfo(aList));
     }
    
     /**

+ 4 - 4
VisualInspection_server/src/main/java/com/xintong/visualinspection/controller/gettway/CheckApplyController_F.java

@@ -74,7 +74,7 @@ public class CheckApplyController_F extends BaseController {
     	task.setCheck_status(checkAppeal.getCheck_status());
     	task.setUpdate_user(new Long(u.getId()));
     	if(checkAppeal.isIsappeal()){
-    	    task.setInvalidFrom(1);
+    	    task.setInvalid_from(1);
         }
     	taskService.updateStatus(task);
     	return super.returnSuccessResult("添加成功");
@@ -128,9 +128,9 @@ public class CheckApplyController_F extends BaseController {
      */
     @RequestMapping(value = "/agreePatch")
     public String agreePatch(HttpServletRequest request,@Valid @RequestBody CheckApply_F checkAppeal){
-    	if(checkAppeal.getApply_ids()==null) {
-    		throw new BusinessException(20001); 
-    	}
+//    	if(checkAppeal.getApply_ids()==null) {
+//    		throw new BusinessException(20001);
+//    	}
     	User user = getCurrentUser(request);
     	List<CheckApply_F> checkApplyList = checkApplyService.getList(checkAppeal);
     	for(CheckApply_F ca :checkApplyList) {

+ 1 - 1
Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/controller/FileExcelController_F.java

@@ -113,7 +113,7 @@ public class FileExcelController_F extends BaseController {
     @RequestMapping(value = "/user/static/excel",method=RequestMethod.GET)
     public String getUserStatistic(HttpServletRequest req,HttpServletResponse resp,
                                    ServiceAreaStatistic obj){
-        statisticsService_f.getFwqStatistic(obj, req, resp);
+       // statisticsService_f.getFwqStatistic(obj, req, resp);
         return super.returnSuccessResult(null);
     }
 

+ 8 - 0
Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/mapper/master/CheckApplylMapper.xml

@@ -31,6 +31,7 @@
         	<![CDATA[ AND ct.end_time < #{end_time}]]>
         </if>
         <if test="apply_dept != null">AND ca.apply_dept = #{apply_dept}</if>
+        <if test="checked_dept != null">AND ct.checked_dept = #{checked_dept}</if>
         <if test="apply_man != null">AND ct.checkman = #{apply_man}</if>
         <if test="apply_ids != null and apply_ids.length > 0">AND
        		ct.id in 
@@ -39,6 +40,13 @@
 	            #{apply_id}
 	        </foreach>
        	</if>
+        <if test="invalidFrom == -1">AND
+            ( ct.invalid_from = 0 OR ct.invalid_from = 1)
+        </if>
+
+        <if test="invalidFrom != null  and invalidFrom != -1">AND
+            ct.invalid_from = #{invalidFrom}
+        </if>
         ORDER BY ct.start_time DESC
     </select>
 

+ 2 - 3
Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/mapper/master/CheckDeptStatisticsMapper.xml

@@ -55,7 +55,6 @@
         check_dept_score
         SET
         <if test="score != null">score = #{score},</if>
-        <if test="scoreWxfw != null">score_wxfw = #{scoreWxfw},</if>
         <if test="integral != null">integral = #{integral},</if>
         id = id
         WHERE
@@ -64,9 +63,9 @@
     <sql id="insertc">
          INSERT INTO
         check_dept_score
-        (dept_id,period_id,score,score_wxfw,integral)
+        (dept_id,period_id,score,integral)
         VALUES
-        (#{dept_id}, #{period_id},#{score},#{scoreWxfw},#{integral})
+        (#{dept_id}, #{period_id},#{score},#{integral})
     </sql>
 
     <select id="selectdepts" parameterType="com.xintong.visualinspection.bean.FwqDeptStatistic" resultMap="BaseResultMap">

+ 35 - 140
Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/mapper/master/StatisticsMapper.xml

@@ -23,8 +23,7 @@
     <select id="selectFeeStationCheckNum" parameterType="com.xintong.visualinspection.bean.FwqStatisticsBean"
             resultType="com.xintong.visualinspection.bean.FwqStatisticsBean">
         SELECT
-        /*COUNT(t.checked_dept) AS checked_num,*/
-        15 AS checked_num,
+        COUNT(t.checked_dept) AS checked_num,
         t.checked_dept AS dept_id
         FROM view_check_task t
         WHERE 1=1
@@ -81,11 +80,7 @@
 
     <select id="selectCheckedTimes" parameterType="com.xintong.visualinspection.bean.FwqStatisticsBean"
             resultType="com.xintong.visualinspection.bean.FwqStatisticsBean">
-        SELECT
-            /*COUNT(1) AS checked_num, */
-            15 AS checked_num,
-            t.checked_dept dept_id
-        FROM view_check_task t
+        SELECT COUNT(1) AS checked_num , t.checked_dept dept_id FROM view_check_task t
         WHERE 1=1
         <if test="dept_id != null and dept_id != ''">
             AND t.checked_dept =#{dept_id}
@@ -160,8 +155,7 @@
         a.*
         FROM (
         SELECT
-        /*count(t.id)     AS checked_num,*/
-        15     AS checked_num,
+        count(t.id)     AS checked_num,
         sum(cs.check_item_score) AS all_check_score,
         cs.check_item_id,
         cs.checked_dept as dept_id
@@ -185,30 +179,24 @@
     <select id="selectYearScoreInfo" parameterType="com.xintong.visualinspection.bean.FwqStatisticsBean"
             resultType="com.xintong.visualinspection.bean.FwqStatisticsBean">
         SELECT
-        sum(a.all_check_score) AS all_check_score,
-        sum(a.checked_num)     AS checked_num,
-        a.mth
+        sum(tab.checkd_all_score) AS all_check_score,
+        sum(tab.checked_num)      AS checked_num,
+        tab.mth
         FROM (
-            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
-            GROUP BY tab.mth
-            UNION ALL
-            SELECT
-            sum(tab2.checkd_all_score) AS all_check_score,
-            sum(tab2.checked_num)      AS checked_num,
-            tab2.mth
-            FROM (
-            <include refid="selectAllOtherCheckedInfoAllCheck"/>
-            ) tab2
-            GROUP BY tab2.mth
-        ) a
-        GROUP BY a.mth
+        <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
+            <foreach item="obj" collection="dept_list" open="("
+                     separator="," close=")">
+                #{obj.id}
+            </foreach>
+        </if>
+        <if test="dept_id!=null and queryType ==2">
+            AND tab.checked_dept=#{dept_id}
+        </if>
+        GROUP BY tab.mth
     </select>
 
     <select id="selectFeeStationCheckedScore" parameterType="com.xintong.visualinspection.bean.FwqStatisticsBean"
@@ -231,36 +219,20 @@
     <select id="selectFeeStationScoreInfo" parameterType="com.xintong.visualinspection.bean.FwqStatisticsBean"
             resultType="com.xintong.visualinspection.bean.FwqStatisticsBean">
         SELECT
-        sum(a.all_check_score) AS all_check_score,
-        sum(a.checked_num)     AS checked_num,
-        a.dept_id AS dept_id
+        sum(tab.checkd_all_score) AS all_check_score,
+        sum(tab.checked_num)      AS checked_num,
+        tab.checked_dept          AS dept_id
         FROM (
-            SELECT
-            sum(tab.checkd_all_score) AS all_check_score,
-            sum(tab.checked_num)      AS checked_num,
-            tab.checked_dept          AS dept_id
-            FROM (
-            <include refid="selectAllCheckedInfoAllCheck"/>
-            ) tab
-            GROUP BY tab.checked_dept
-            UNION ALL
-            SELECT
-            sum(tab2.checkd_all_score) AS all_check_score,
-            sum(tab2.checked_num)      AS checked_num,
-            tab2.dept_id AS dept_id
-            FROM (
-            <include refid="selectAllOtherCheckedInfoAllCheck"/>
-            ) tab2
-          GROUP BY tab2.dept_id
-          ) a
-        GROUP BY a.dept_id;
+        <include refid="selectAllCheckedInfoAllCheck"/>
+        ) tab
+        WHERE 1=1
+        GROUP BY tab.checked_dept
     </select>
 
     <select id="selectCheckedItemScoreInfo" parameterType="com.xintong.visualinspection.bean.FwqStatisticsBean"
             resultType="com.xintong.visualinspection.bean.FwqStatisticsBean">
         SELECT
-          /*count(DISTINCT m.task_id)   AS checked_num,*/
-          15   AS checked_num,
+          count(DISTINCT m.task_id)   AS checked_num,
           sum(m.check_item_score)     AS all_check_score,
           m.check_item_id,
           m.checked_dept              AS dept_id
@@ -272,27 +244,13 @@
         ORDER BY m.checked_dept
     </select>
 
-    <select id="selectlimituser" parameterType="com.xintong.visualinspection.pojo.fwq.ServiceAreaStatistic" resultType="com.xintong.visualinspection.pojo.fwq.ServiceAreaStatistic">
+    <select id="selectlimituser"   parameterType="com.xintong.visualinspection.pojo.fwq.ServiceAreaStatistic" resultType="com.xintong.visualinspection.pojo.fwq.ServiceAreaStatistic">
+
         select a.* from (
-        <choose>
-            <when test="sctype != null &amp;&amp; sctype != '' &amp;&amp; sctype == 2 ">
-                <include refid="selectc"/>
-            </when>
-            <otherwise>
-                <include refid="selectcwxfw"/>
-            </otherwise>
-        </choose>
+        <include refid="selectc"/>
         ) a where a.dept_id IN ( select d.dept_id from  (select p.dept_id,
-        COUNT(dept_id) AS COUNT from (
-        <choose>
-            <when test="sctype != null &amp;&amp; sctype != '' &amp;&amp; sctype == 2 ">
-                <include refid="selectc"/>
-            </when>
-            <otherwise>
-                <include refid="selectcwxfw"/>
-            </otherwise>
-        </choose>
-        ) p GROUP BY p.dept_id ) d where d.count >= #{limitnumber} )
+        COUNT(dept_id) AS COUNT from (<include refid="selectc"/>) p GROUP BY p.dept_id ) d where d.count >= #{limitnumber} )
+
     </select>
 
     <sql id="selectc">
@@ -306,17 +264,6 @@
         GROUP BY dept_id, period_id
     </sql>
 
-    <sql id="selectcwxfw">
-        SELECT *
-        FROM
-        check_dept_score AS user_total_score
-        WHERE
-        period_id >= #{startperiod_id}
-        AND period_id &lt;= #{endperiod_id}
-        AND score_wxfw >= #{limitscore} AND score_wxfw &lt;= #{limitscore2}
-        GROUP BY dept_id, period_id
-    </sql>
-
 
     <sql id="selectOneAllCheckedInfoData">
         SELECT
@@ -327,8 +274,7 @@
         FROM
         (
         SELECT
-        /*COUNT(t.id)             AS checked_num,*/
-        15             AS checked_num,
+        COUNT(t.id)             AS checked_num,
         monthfunc(t.start_time) AS mth,
         t.checked_dept
         FROM
@@ -383,8 +329,7 @@
         FROM
         (
         SELECT
-        /*COUNT(t.checked_dept)   AS checked_num,*/
-        15   AS checked_num,
+        COUNT(t.checked_dept)   AS checked_num,
         monthfunc(t.start_time) AS mth,
         t.id,
         t.checked_dept
@@ -432,56 +377,6 @@
         AND check_num_t.mth = checked_score_t.mth
     </sql>
 
-    <!--第三方扣分-包含未扣分的-->
-    <sql id="selectAllOtherCheckedInfoAllCheck">
-        SELECT
-        other_check_num_t.checked_num,
-        other_check_num_t.mth,
-        IFNULL(other_checked_score_t.checkd_all_score, 0) AS checkd_all_score,
-        other_check_num_t.dept_id
-        FROM
-        (
-        SELECT
-        COUNT(oc.dept_id)  AS checked_num,
-        oc.check_time_name AS mth,
-        oc.dept_id
-        FROM
-        other_check oc
-        WHERE 1=1
-        <if test="start_date !=null">
-            AND oc.check_time >= #{start_date}
-        </if>
-        <if test="end_date !=null">
-            AND oc.check_time &lt; #{end_date}
-        </if>
-        <if test="mth!=null and mth!=''">
-            AND oc.check_time_name =#{mth}
-        </if>
-        GROUP BY
-        oc.dept_id,
-        oc.check_time_name
-        ) other_check_num_t
-        LEFT JOIN (
-        SELECT
-        oc.check_time_name  AS mth,
-        sum(oc.check_score) AS checkd_all_score,
-        dept_id
-        FROM other_check oc
-        WHERE 1 = 1
-        <if test="start_date !=null">
-            AND oc.check_time >= #{start_date}
-        </if>
-        <if test="end_date !=null">
-            AND oc.check_time &lt; #{end_date}
-        </if>
-        <if test="mth!=null and mth!=''">
-            AND oc.check_time_name =#{mth}
-        </if>
-        GROUP BY mth, oc.dept_id
-        ) other_checked_score_t ON other_checked_score_t.dept_id = other_check_num_t.dept_id
-        AND other_check_num_t.mth = other_checked_score_t.mth
-    </sql>
-
 </mapper>
 
 

+ 1 - 0
Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/mapper/master/TaskMapper.xml

@@ -89,6 +89,7 @@
         update check_task set
         <if test="check_status != null">check_status = #{check_status},</if>
         <if test="recheckman != null">recheckman = #{recheckman},</if>
+        <if test="invalid_from != null">invalid_from = #{invalid_from},</if>
         update_time=now()
         WHERE
         id = #{id}

+ 0 - 7
Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/service/StatisticsService_F.java

@@ -2,12 +2,9 @@ package com.xintong.visualinspection.visuallnspection_fjq.service;
 
 import com.xintong.visualinspection.bean.FwqDeptStatistic;
 import com.xintong.visualinspection.bean.FwqStatisticsBean;
-import com.xintong.visualinspection.pojo.fwq.FwqStatisiticPojo;
-import com.xintong.visualinspection.pojo.fwq.ServiceAreaStatistic;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
-import java.util.List;
 
 public interface StatisticsService_F {
 
@@ -16,8 +13,4 @@ public interface StatisticsService_F {
     void getDeptStatisticExcel(FwqDeptStatistic fwqDeptStatistic, HttpServletRequest req, HttpServletResponse resp);
 
     void getFeeStationCheckItemScore(FwqStatisticsBean obj, HttpServletRequest req, HttpServletResponse resp);
-
-    List<FwqStatisiticPojo> getFwqStatistic(ServiceAreaStatistic obj);
-
-    void getFwqStatistic(ServiceAreaStatistic obj, HttpServletRequest req, HttpServletResponse resp);
 }

+ 60 - 84
Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/service/impl/StatisticsServiceImpl.java

@@ -24,7 +24,6 @@ import org.springframework.beans.factory.annotation.Autowired;
 import java.text.DecimalFormat;
 import java.text.SimpleDateFormat;
 import java.util.ArrayList;
-import java.util.Calendar;
 import java.util.Comparator;
 import java.util.Date;
 import java.util.HashMap;
@@ -84,9 +83,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
         List<FwqStatisticsBean> onsite_beans = fwqStatisticsDao.getselectFeeStationOperationScoreDetail(obj);
 
         for (FwqStatisticsBean company_bean : company_beans) {
-//            mapStationInfos.get(company_bean.getDept_id()).setCompany_check_num(company_bean.getChecked_num());
-            // 公司稽查固定15次稽查
-            mapStationInfos.get(company_bean.getDept_id()).setCompany_check_num(15);
+            mapStationInfos.get(company_bean.getDept_id()).setCompany_check_num(company_bean.getChecked_num());
             mapStationInfos.get(company_bean.getDept_id()).setCompany_total_score(company_bean.getAll_check_score());
         }
         for (FwqStatisticsBean third_bean : third_beans) {
@@ -104,24 +101,20 @@ public class StatisticsServiceImpl implements StatisticsService_F {
         DecimalFormat df = new DecimalFormat("0.00");
         for (Map.Entry<Long, FwqStatisticsBean> station : stationInfos) {
             float avg = 0;
-            float avgWxfw = 0;
             FwqStatisticsBean value = station.getValue();
             value.setThird_check_num(1);
             value.setOnsite_check_num(1);
             // 设置总平均扣分
             if (value.getCompany_check_num() > 0 || value.getThird_check_num() > 0) {
-                avgWxfw += value.getCompany_total_score() / 15.0;
-                avg += value.getCompany_total_score() / 15.0 * 0.3 + value.getThird_total_score() * 0.4 + value.getOnsite_total_score() * 0.3;
+                avg += (value.getCompany_total_score() + value.getThird_total_score()) / 2.0 / (value.getCompany_check_num() + value.getThird_check_num());
+            }
+            if (value.getOnsite_check_num() > 0) {
+                avg += value.getOnsite_total_score() / 2.0 / value.getOnsite_check_num();
             }
-//            if (value.getOnsite_check_num() > 0) {
-//                avg += value.getOnsite_total_score() / 2.0 / value.getOnsite_check_num();
-//            }
             value.setCheck_total_avg(df.format(avg));
             // 设置平均得分
             Float score_avg = (1000 - Float.valueOf(df.format(avg)));
-            Float score_wxfw_avg = (1000-Float.valueOf(df.format(avgWxfw)));
             value.setScore_avg(score_avg.toString());
-            value.setScore_wxfw_avg(score_wxfw_avg.toString());
         }
         List<FwqStatisticsBean> sortList = new ArrayList<>(mapStationInfos.values());
         sortList.sort(new Comparator<FwqStatisticsBean>() {
@@ -165,7 +158,6 @@ public class StatisticsServiceImpl implements StatisticsService_F {
             for (FwqStatisticsBean s : sortList) {
                 FwqDeptStatistic ss = new FwqDeptStatistic();
                 ss.setScore(Double.parseDouble(s.getScore_avg()));
-                ss.setScoreWxfw(Double.parseDouble(s.getScore_wxfw_avg()));
                 ss.setIntegral(sortList.size() - s.getCompany_ranking2() + 1);
                 ss.setDept_id(s.getDept_id());
                 ss.setPeriod_id(period.getId());
@@ -414,15 +406,11 @@ public class StatisticsServiceImpl implements StatisticsService_F {
 
         // 处理同一个服务区中,如果item的parent_id是一样的话,将这些数据结合在一起
         for (FwqStatisticsBean sta : listCheckedScore) {
-            Item item = itemMap.get(sta.getCheck_item_id().longValue());
-            if (item != null) {
-                sta.setItem_id(item.getParent_id().intValue());
-            }
+            sta.setItem_id(itemMap.get(sta.getCheck_item_id().longValue()).getParent_id().intValue());
         }
         for (int i = 0; i < listCheckedScore.size(); i++) {
             for (int j = listCheckedScore.size() - 1; j > i; j--) {
-                if (listCheckedScore.get(j).getDept_id() != null && listCheckedScore.get(j).getDept_id().equals(listCheckedScore.get(i).getDept_id()) && listCheckedScore.get(j).getItem_id() != null && listCheckedScore.get(j).getItem_id().equals
-                        (listCheckedScore.get(i).getItem_id())) {
+                if (listCheckedScore.get(j).getDept_id().equals(listCheckedScore.get(i).getDept_id()) && listCheckedScore.get(j).getItem_id().equals(listCheckedScore.get(i).getItem_id())) {
                     listCheckedScore.get(i).setScore(listCheckedScore.get(i).getScore() + listCheckedScore.get(j).getScore());
                     listCheckedScore.remove(j);
                 }
@@ -488,13 +476,8 @@ public class StatisticsServiceImpl implements StatisticsService_F {
     @Override
     public FwqRankingData getEmployeeRankingData(FwqStatisticsBean obj) {
         FwqRankingData data = new FwqRankingData();
-        Calendar cal = Calendar.getInstance();
-        cal.setTime(obj.getStart_date());
-        cal.add(Calendar.MONTH, -1);
-        Calendar cal2 = Calendar.getInstance();
-        cal2.setTime(obj.getEnd_date());
-        cal2.add(Calendar.MONTH, -1);
-        CheckTaskPeriod lastTaskPeriod = commonService.getCheckTaskPeriod(cal.getTime().getTime()+1 * 1000 * 60 * 60, cal2.getTime().getTime()+1 * 1000 * 60 * 60);
+
+        CheckTaskPeriod lastTaskPeriod = commonService.getCheckTaskPeriod(obj.getStart_date().getTime()+1 * 1000 * 60 * 60, obj.getEnd_date().getTime()+1 * 1000 * 60 * 60);
         if (lastTaskPeriod != null) {
             FwqStatisticsBean temp = new FwqStatisticsBean();
             temp.setStart_date(new Date(lastTaskPeriod.getStarttime().getTime() - 1 * 1000 * 60 * 60));
@@ -623,14 +606,11 @@ public class StatisticsServiceImpl implements StatisticsService_F {
         Map<Long, Organ> deptMap = commonService.getDeptMap();
         // 将list中的数据找到项目的父项目,然后去除重复的
         for (FwqStatisticsBean sta : list) {
-            Item item = itemMap.get(sta.getCheck_item_id().longValue());
-            if (item != null) {
-                sta.setItem_id(item.getParent_id().intValue());
-            }
+            sta.setItem_id(itemMap.get(sta.getCheck_item_id().longValue()).getParent_id().intValue());
         }
         for (int i = 0; i < list.size(); i++) {
             for (int j = list.size() - 1; j > i; j--) {
-                if (list.get(j).getDept_id().equals(list.get(i).getDept_id()) && list.get(j).getItem_id() != null && list.get(j).getItem_id().equals(list.get(i).getItem_id())) {
+                if (list.get(j).getDept_id().equals(list.get(i).getDept_id()) && list.get(j).getItem_id().equals(list.get(i).getItem_id())) {
                     list.get(i).setScore(list.get(i).getScore() + list.get(j).getScore());
                     list.remove(j);
                 }
@@ -663,7 +643,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
             if (statisticBoMap.containsKey(statisticsBean.getDept_id())) {
                 FwqStatisticsBo tmp = statisticBoMap.get(statisticsBean.getDept_id());
                 // 组装扣分类型内容
-                if (itemMap.get(statisticsBean.getCheck_item_id().longValue()) != null && itemMap.get(statisticsBean.getCheck_item_id().longValue()).getParent_id() != null) {
+                if (itemMap.get(statisticsBean.getCheck_item_id().longValue()).getParent_id() != null) {
                     statisticsBean.setId(itemMap.get(statisticsBean.getCheck_item_id().longValue()).getParent_id().intValue());
                     if (itemMap.get(statisticsBean.getCheck_item_id().longValue()).getScore() == null) {
                         statisticsBean.setName(itemMap.get(statisticsBean.getCheck_item_id().longValue()).getName());
@@ -790,15 +770,14 @@ public class StatisticsServiceImpl implements StatisticsService_F {
             FwqStatisticsBean obj2 = new FwqStatisticsBean();
             obj2.setDept_id(Long.valueOf(sta.getDeptid()));
             obj2.setName(sta.getName());
-//            // 30:连云港道管;31:盐城道管;32:南通道管
-//            if ("30".equals(sta.getParentid())) {
-//                obj2.setId(1);
-//            } else if ("31".equals(sta.getParentid())) {
-//                obj2.setId(2);
-//            } else if ("32".equals(sta.getParentid())) {
-//                obj2.setId(3);
-//            }
-            obj2.setChecked_num(15);
+            // 30:连云港道管;31:盐城道管;32:南通道管
+            if ("30".equals(sta.getParentid())) {
+                obj2.setId(1);
+            } else if ("31".equals(sta.getParentid())) {
+                obj2.setId(2);
+            } else if ("32".equals(sta.getParentid())) {
+                obj2.setId(3);
+            }
             mapStationInfos.put(Long.valueOf(sta.getDeptid()), obj2);
         }
 
@@ -809,13 +788,13 @@ public class StatisticsServiceImpl implements StatisticsService_F {
             }
         }
 
-        // 检查次数     此处注释是为了统一每个服务区的检查次数都是15次
-//        List<FwqStatisticsBean> listCheckNum = fwqStatisticsDao.selectFeeStationCheckNum(obj);
-//        for (FwqStatisticsBean sta : listCheckNum) {
-//            if (mapStationInfos.containsKey(sta.getDept_id())) {
-//                mapStationInfos.get(sta.getDept_id()).setChecked_num(sta.getChecked_num());
-//            }
-//        }
+        // 检查次数
+        List<FwqStatisticsBean> listCheckNum = fwqStatisticsDao.selectFeeStationCheckNum(obj);
+        for (FwqStatisticsBean sta : listCheckNum) {
+            if (mapStationInfos.containsKey(sta.getDept_id())) {
+                mapStationInfos.get(sta.getDept_id()).setChecked_num(sta.getChecked_num());
+            }
+        }
 
         List<FwqStatisticsBo> list = getEmployeeCheckedInfo(obj);
         Map<Integer, FwqStatisticsBo> listmap = new HashMap<>();
@@ -850,36 +829,36 @@ public class StatisticsServiceImpl implements StatisticsService_F {
 
         List<FwqStatisticsBean> sortList = new ArrayList<>(mapStationInfos.values());
 
-//        sortList.sort(new Comparator<FwqStatisticsBean>() {
-//            @Override
-//            public int compare(FwqStatisticsBean o1, FwqStatisticsBean o2) {
-//                if (o1.getId() > o2.getId()) {
-//                    return 1;
-//                } else if (o1.getId().equals(o2.getId())) {
-//                    if (o1.getChecked_num() != 0 && o2.getChecked_num() != 0) {
-//                        if (o1.getAll_check_score() / (o1.getChecked_num() + 0.0) > o2.getAll_check_score()
-//                                / (o2.getChecked_num() + 0.0)) {
-//                            return 1;
-//                        } else if (o1.getAll_check_score() / (o1.getChecked_num() + 0.0) < o2.getAll_check_score()
-//                                / (o2.getChecked_num() + 0.0)) {
-//                            return -1;
-//                        } else {
-//                            return 0;
-//                        }
-//                    } else {
-//                        if (o1.getChecked_num() == 0) {
-//                            return -1;
-//                        } else if (o2.getChecked_num() == 0) {
-//                            return 1;
-//                        } else {
-//                            return 0;
-//                        }
-//                    }
-//                } else {
-//                    return -1;
-//                }
-//            }
-//        });
+        sortList.sort(new Comparator<FwqStatisticsBean>() {
+            @Override
+            public int compare(FwqStatisticsBean o1, FwqStatisticsBean o2) {
+                if (o1.getId() > o2.getId()) {
+                    return 1;
+                } else if (o1.getId().equals(o2.getId())) {
+                    if (o1.getChecked_num() != 0 && o2.getChecked_num() != 0) {
+                        if (o1.getAll_check_score() / (o1.getChecked_num() + 0.0) > o2.getAll_check_score()
+                                / (o2.getChecked_num() + 0.0)) {
+                            return 1;
+                        } else if (o1.getAll_check_score() / (o1.getChecked_num() + 0.0) < o2.getAll_check_score()
+                                / (o2.getChecked_num() + 0.0)) {
+                            return -1;
+                        } else {
+                            return 0;
+                        }
+                    } else {
+                        if (o1.getChecked_num() == 0) {
+                            return -1;
+                        } else if (o2.getChecked_num() == 0) {
+                            return 1;
+                        } else {
+                            return 0;
+                        }
+                    }
+                } else {
+                    return -1;
+                }
+            }
+        });
 
         return sortList;
     }
@@ -1011,18 +990,15 @@ public class StatisticsServiceImpl implements StatisticsService_F {
         objList = fwqStatisticsDao.selectCheckedItemScoreInfo(obj);
 
         for (FwqStatisticsBean sta : objList) {
-            Item item = itemMap.get(sta.getCheck_item_id().longValue());
-            if (item != null) {
-                sta.setItem_id(item.getParent_id().intValue());
-                sta.setName(itemMap.get(item.getParent_id()).getName());
-            }
+            sta.setItem_id(itemMap.get(sta.getCheck_item_id().longValue()).getParent_id().intValue());
+            sta.setName(itemMap.get(itemMap.get(sta.getCheck_item_id().longValue()).getParent_id()).getName());
             sta.setFeeStationName(deptMap.get(sta.getDept_id()).getOrganname());
             sta.setPfeeStationName(deptMap.get(deptMap.get(sta.getDept_id()).getParentid().longValue()).getOrganname());
             sta.setParent_dept_id(deptMap.get(sta.getDept_id()).getParentid().longValue());
         }
         for (int i = 0; i < objList.size(); i++) {
             for (int j = objList.size() - 1; j > i; j--) {
-                if (objList.get(j).getDept_id() != null && objList.get(j).getDept_id().equals(objList.get(i).getDept_id()) && objList.get(j).getItem_id() != null && objList.get(j).getItem_id().equals(objList.get(i).getItem_id())) {
+                if (objList.get(j).getDept_id().equals(objList.get(i).getDept_id()) && objList.get(j).getItem_id().equals(objList.get(i).getItem_id())) {
                     objList.get(i).setAll_check_score(objList.get(i).getAll_check_score() + objList.get(j).getAll_check_score());
                     objList.get(i).setChecked_num(objList.get(i).getChecked_num() + objList.get(j).getChecked_num());
                     objList.remove(j);

+ 5 - 140
Visuallnspection_fjq/visuallnspection_fjq/src/main/java/com/xintong/visualinspection/visuallnspection_fjq/service/impl/StatisticsService_FImpl.java

@@ -7,8 +7,6 @@ import com.xintong.visualinspection.bean.FwqDeptStatistic;
 import com.xintong.visualinspection.bean.FwqStatisticsBean;
 import com.xintong.visualinspection.bean.Item;
 import com.xintong.visualinspection.bean.Organ;
-import com.xintong.visualinspection.pojo.fwq.FwqStatisiticPojo;
-import com.xintong.visualinspection.pojo.fwq.ServiceAreaStatistic;
 import com.xintong.visualinspection.service.CommonService;
 import com.xintong.visualinspection.visuallnspection_fjq.dao.FwqCheckDeptStatisticsDao;
 import com.xintong.visualinspection.visuallnspection_fjq.dao.FwqStatisticsDao;
@@ -83,7 +81,7 @@ public class StatisticsService_FImpl implements StatisticsService_F {
         List<FwqStatisticsBean> onsite_beans = fwqStatisticsDao.getselectFeeStationOperationScoreDetail(obj);
 
         for (FwqStatisticsBean company_bean : company_beans) {
-            mapStationInfos.get(company_bean.getDept_id()).setCompany_check_num(15);
+            mapStationInfos.get(company_bean.getDept_id()).setCompany_check_num(company_bean.getChecked_num());
             mapStationInfos.get(company_bean.getDept_id()).setCompany_total_score(company_bean.getAll_check_score());
         }
         for (FwqStatisticsBean third_bean : third_beans) {
@@ -106,9 +104,11 @@ public class StatisticsService_FImpl implements StatisticsService_F {
             value.setOnsite_check_num(1);
             // 设置总平均扣分
             if (value.getCompany_check_num() > 0 || value.getThird_check_num() > 0) {
-                avg += value.getCompany_total_score() / 15.0 * 0.3 + value.getThird_total_score() * 0.4 + value.getOnsite_total_score() * 0.3;
+                avg += (value.getCompany_total_score() + value.getThird_total_score()) / 2.0 / (value.getCompany_check_num() + value.getThird_check_num());
+            }
+            if (value.getOnsite_check_num() > 0) {
+                avg += value.getOnsite_total_score() / 2.0 / value.getOnsite_check_num();
             }
-
             value.setCheck_total_avg(df.format(avg));
             // 设置平均得分
             Float score_avg = (1000 - Float.valueOf(df.format(avg)));
@@ -584,141 +584,6 @@ public class StatisticsService_FImpl implements StatisticsService_F {
         exportExcel("温馨服务检查情况统计表", "fwq_checked_item_info", map, resp);
     }
 
-    @Override
-    public List<FwqStatisiticPojo> getFwqStatistic(ServiceAreaStatistic obj) {
-
-        List<CheckTaskPeriod> checkTaskPeriods = commonService.getAllCheckTaskPeriod();
-        Map<Long, Organ> deptMap = commonService.getDeptMap();
-
-        for (CheckTaskPeriod p : checkTaskPeriods) {
-            if (obj.getStart_date() + 1 * 1000 * 60 * 60 == p.getEndtime().getTime()) {
-                obj.setStartperiod_id(p.getId());
-            }
-            if (obj.getEnd_date() + 1 * 1000 * 60 * 60 == p.getEndtime().getTime()) {
-                obj.setEndperiod_id(p.getId());
-            }
-        }
-        if (obj.getStart_date() > (checkTaskPeriods.get(checkTaskPeriods.size() - 1).getEndtime().getTime() - 1 * 1000 * 60 * 60)) {
-            return new ArrayList<>();
-        }
-        if (obj.getEnd_date() < (checkTaskPeriods.get(0).getEndtime().getTime() - 1 * 1000 * 60 * 60)) {
-            return new ArrayList<>();
-        }
-        if (obj.getStart_date() < (checkTaskPeriods.get(0).getEndtime().getTime() - 1 * 1000 * 60 * 60)) {
-            obj.setStartperiod_id(checkTaskPeriods.get(0).getId());
-        }
-        if (obj.getEnd_date() > (checkTaskPeriods.get(checkTaskPeriods.size() - 1).getEndtime().getTime() - 1 * 1000 * 60 * 60)) {
-            obj.setEndperiod_id(checkTaskPeriods.get(checkTaskPeriods.size() - 1).getId());
-        }
-
-        List<CheckTaskPeriod> temp_p = new ArrayList<>();
-        for (CheckTaskPeriod p : checkTaskPeriods) {
-            if (p.getId() >= obj.getStartperiod_id() && p.getId() <= obj.getEndperiod_id()) {
-                temp_p.add(p);
-            }
-        }
-
-        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy.MM");
-        //获取满足条件的服务区
-        List<ServiceAreaStatistic> fwqStatistics = fwqStatisticsDao.selectlimituser(obj);
-
-        HashMap<Integer, List<ServiceAreaStatistic>> usm = new HashMap<>();
-
-        for (ServiceAreaStatistic c : fwqStatistics
-                ) {
-            List<ServiceAreaStatistic> s = usm.get(c.getDept_id());
-            if (s == null) {
-                s = new ArrayList<>();
-            }
-            s.add(c);
-            usm.put(c.getDept_id(), s);
-            for (CheckTaskPeriod p : checkTaskPeriods) {
-                if (c.getPeriod_id().equals(p.getId())) {
-                    c.setP_str(simpleDateFormat.format(p.getEndtime()));
-                }
-            }
-        }
-
-        List<FwqStatisiticPojo> fwq_ids = new ArrayList<>();
-
-        //判断是否连续
-        for (Integer k : usm.keySet()) {
-            List<ServiceAreaStatistic> user_temp = new ArrayList<>();
-            boolean isM = false;
-
-            List<ServiceAreaStatistic> pp = new ArrayList<>();
-            //获取得分
-            List<ServiceAreaStatistic> ll = usm.get(k);
-            int count = 0;
-            for (CheckTaskPeriod p : temp_p) {
-                boolean isfond = false;
-                for (ServiceAreaStatistic s : ll) {
-                    if (s.getPeriod_id().equals(p.getId())) {
-                        isfond = true;
-                        pp.add(s);
-                        break;
-                    }
-                }
-                if (isfond) {
-                    count++;
-                    if (count >= obj.getLimitnumber()) {
-                        isM = true;
-                        user_temp.addAll(pp);
-                        pp.clear();
-                    }
-                } else {
-                    if (count >= obj.getLimitnumber()) {
-                        isM = true;
-                        user_temp.addAll(pp);
-                    }
-                    count = 0;
-                    pp.clear();
-                }
-            }
-
-            if (isM) {
-                FwqStatisiticPojo p = new FwqStatisiticPojo();
-                p.setDept_id(k.longValue());
-                p.setDept(deptMap.get(k.longValue()).getOrganname());
-                p.setFwqStatistics(user_temp);
-                fwq_ids.add(p);
-            }
-        }
-
-        for (FwqStatisiticPojo s:fwq_ids ) {
-            String dat = "";
-            for (ServiceAreaStatistic statistic : s.getFwqStatistics()) {
-                dat += statistic.getP_str() + "月、";
-            }
-            dat = dat.substring(0, dat.length() - 1);
-            s.setDes(dat);
-        }
-
-        return fwq_ids;
-    }
-
-    @Override
-    public void getFwqStatistic(ServiceAreaStatistic obj, HttpServletRequest req, HttpServletResponse resp) {
-        List<FwqStatisiticPojo> list = this.getFwqStatistic(obj);
-        SimpleDateFormat d = new SimpleDateFormat("yyyy/MM");
-        String name = "";
-        if ("2".equals(obj.getSctype())) {
-            name = "综合得分";
-        } else if ("1".equals(obj.getSctype())) {
-            name = "温馨服务得分";
-        }
-        List<Integer> temp = new ArrayList<>();
-        for (int i = 1; i <= list.size(); i++) {
-            temp.add(i);
-        }
-
-        Map<String, Object> map = new HashMap<>();
-        map.put("list", temp);
-        map.put("datas", list);
-        map.put("title", "服务区" + name + "连续月统计" + "(" + d.format(obj.getStart_date()) + "---" + d.format(obj.getEnd_date()) + ")");
-        exportExcel("服务区连续月统计", "fwq_user_statistic", map, resp);
-    }
-
     private void exportExcel(String fileName, String excelTemplateName, Map<String, Object> map,
                              HttpServletResponse resp) {
         String path = "./" + fileName + ".xls";

+ 4 - 0
Visuallnspection_fjq/visuallnspectioninteface/src/main/java/com/xintong/visualinspection/bean/CheckApply_F.java

@@ -58,4 +58,8 @@ public class CheckApply_F implements Serializable {
     private Integer count;
 
     private boolean isappeal;
+
+    private Long checked_dept;
+
+    private Integer invalidFrom;
 }