|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
package Tools;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
|
|
import com.dsideal.QingLong.Const.GtzzConst;
|
|
|
|
|
import com.dsideal.QingLong.Gtzz.Model.GtzzModel;
|
|
|
|
|
import com.dsideal.QingLong.Start;
|
|
|
|
|
import com.dsideal.QingLong.Util.CommonUtil;
|
|
|
|
|
import com.dsideal.QingLong.Util.PgSqlUtil;
|
|
|
|
@ -43,8 +45,17 @@ public class ClearGtzz {
|
|
|
|
|
String[] array = str.split("\n");
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < array.length; i++) {
|
|
|
|
|
System.out.println("正在执行清空表:"+array[i].replace("\r",""));
|
|
|
|
|
PgSqlUtil.Truncate(array[i].replace("\r",""));
|
|
|
|
|
System.out.println("正在执行清空表:" + array[i].replace("\r", ""));
|
|
|
|
|
PgSqlUtil.Truncate(array[i].replace("\r", ""));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//增加两个默认的验收任务
|
|
|
|
|
GtzzModel gm = new GtzzModel();
|
|
|
|
|
int id = gm.addYs("【初审专家分配系统保留任务】", "0203"); //为“技术方案初审” 服务
|
|
|
|
|
System.out.println("添加默认验收任务,id为:" + id);
|
|
|
|
|
gm.saveYsExpert(id, GtzzConst.DEFAULT_EXPERT, GtzzConst.DEFAULT_EXPERT);
|
|
|
|
|
id = gm.addYs("【验收专家分配系统保留任务】", "0307"); //为"市级验收"服务
|
|
|
|
|
gm.saveYsExpert(id, GtzzConst.DEFAULT_EXPERT, GtzzConst.DEFAULT_EXPERT);
|
|
|
|
|
System.out.println("添加默认验收任务,id为:" + id);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|