2369059705@qq.com
2023-05-25 8129b7ddaf315fc16edccd417e9663380a427311
协同已读状态
已修改1个文件
10 ■■■■ 文件已修改
src/main/java/com/product/administration/service/CooperatesService.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/administration/service/CooperatesService.java
@@ -119,9 +119,9 @@
            fse.addSubDataTable(dd);
            json = BaseUtil.dataTableToTreeData(dt, "code", "tricode", null, false);
        }
        String sql = " select count(*) sum from product_oa_cooperate_flow_node where cooperate_uuid =?  and status =? ";
        String sql1 = " select count(*) sum from product_oa_cooperate_flow_node where cooperate_uuid =? ";
        String sql0 = " select count(*) sum from product_oa_cooperate_flow_node where cooperate_uuid =?  and (status =? or status is null) ";
        String sql = " select count(*) sum from product_oa_cooperate_flow_node where cooperate_uuid =?  and status =? and tricode is not null";
        String sql1 = " select count(*) sum from product_oa_cooperate_flow_node where cooperate_uuid =? and tricode is not null";
        String sql0 = " select count(*) sum from product_oa_cooperate_flow_node where cooperate_uuid =?  and (status =? or status is null) and tricode is not null";
        FieldSetEntity fss = baseDao.getFieldSetEntityBySQL(sql1, new Object[]{fs.getString(CmnConst.UUID)}, true);
        FieldSetEntity fs0 = baseDao.getFieldSetEntityBySQL(sql0, new Object[]{fs.getString(CmnConst.UUID), 0}, true);
        FieldSetEntity fs1 = baseDao.getFieldSetEntityBySQL(sql, new Object[]{fs.getString(CmnConst.UUID), 1}, true);
@@ -129,7 +129,7 @@
        if (fss.getInteger("sum") == null) {
            fse.setValue("totals", 0);//流程共有人数
        } else {
            fse.setValue("totals", fss.getInteger("sum") - 1);
            fse.setValue("totals", fss.getInteger("sum"));
        }
        if (fs0.getInteger("sum") == null) {
            fse.setValue("uncollectd", 0);//未收未办人数
@@ -144,7 +144,7 @@
        if (fs2.getInteger("sum") == null) {
            fse.setValue("done", 0);//已收已办人数
        } else {
            fse.setValue("done", fs2.getInteger("sum") - 1);
            fse.setValue("done", fs2.getInteger("sum"));
        }
        int a = fse.getInteger("totals") - fse.getInteger("uncollectd") - fse.getInteger("received") - fse.getInteger("done");
        fse.setValue("not_yet", a);//未到环节人数