You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.5 KiB
Plaintext
60 lines
2.5 KiB
Plaintext
<%@ page import="weaver.conn.RecordSetDataSource" %>
|
|
<%@ page import="weaver.conn.RecordSet" %>
|
|
<%@ page import="com.engine.custom.corn.util.ReportUtil" %>
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
|
|
|
|
<%
|
|
out.print("<br/>最爱用APP更新开始执行");
|
|
execute();
|
|
out.print("<br/>最爱用APP更新结束");
|
|
|
|
%>
|
|
<%!
|
|
|
|
|
|
public void execute() {
|
|
|
|
RecordSet rs = new RecordSet();
|
|
updateAppAndNum(rs);
|
|
|
|
|
|
|
|
}
|
|
|
|
private int updateAppAndNum(RecordSet rs) {
|
|
rs.executeUpdate("UPDATE uf_personreport " +
|
|
"SET " +
|
|
" (zaydyy, ljsycs) = ( " +
|
|
" SELECT MaxField, MaxValue " +
|
|
" FROM ( " +
|
|
" SELECT id , " +
|
|
" GREATEST( " +
|
|
" NVL(gsznzydjs, 0), " +
|
|
" NVL(itptdjs, 0), " +
|
|
" NVL(ygzs, 0), " +
|
|
" NVL(sktx, 0), " +
|
|
" NVL(sxsp, 0) " +
|
|
" ) AS MaxValue, " +
|
|
" CASE GREATEST( " +
|
|
" NVL(gsznzydjs, 0), " +
|
|
" NVL(itptdjs, 0), " +
|
|
" NVL(ygzs, 0), " +
|
|
" NVL(sktx, 0), " +
|
|
" NVL(sxsp, 0) " +
|
|
" ) " +
|
|
" WHEN NVL(gsznzydjs, 0) THEN '公司智能作业' " +
|
|
" WHEN NVL(itptdjs, 0) THEN 'IT项目审批' " +
|
|
" WHEN NVL(ygzs, 0) THEN '云工作室' " +
|
|
" WHEN NVL(sktx, 0) THEN '数看天行' " +
|
|
" WHEN NVL(sxsp, 0) THEN '授信审批' " +
|
|
" END AS MaxField " +
|
|
" FROM uf_personreport " +
|
|
" ) " +
|
|
" WHERE uf_personreport.id = id " +
|
|
" ) " +
|
|
"WHERE gsznzydjs is not null or itptdjs is not null or ygzs is not null or sktx is not null or sxsp is not null");
|
|
return rs.getUpdateCount();
|
|
}
|
|
|
|
|
|
%> |