31 lines
892 B
Plaintext
31 lines
892 B
Plaintext
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
|
<%@ page import="weaver.general.Util" %>
|
|
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
|
|
<jsp:useBean id="rst" class="weaver.conn.RecordSet" scope="page" />
|
|
<%
|
|
|
|
int sum = 0;
|
|
|
|
rs.executeQuery("select distinct id,field42 from cus_fielddata where scope='HrmCustomFieldByInfoType' and scopeid='3'");
|
|
while(rs.next()){
|
|
String mxid = Util.null2String(rs.getString("id"));
|
|
String field42 = Util.null2String(rs.getString("field42"));
|
|
if(field42 != null && !"".equals(field42)){
|
|
boolean bool = rst.executeUpdate("update hrmresource set workstartdate=? where id=?",field42,mxid);
|
|
if(bool){
|
|
sum++;
|
|
}
|
|
}
|
|
}
|
|
|
|
%>
|
|
|
|
<HEAD>
|
|
</HEAD>
|
|
<BODY>
|
|
<h1>Congratulation!</h1>
|
|
|
|
<h1>一共更新了 <%=sum%> 条数据!</h1>
|
|
|
|
</BODY>
|