更新自动分派
This commit is contained in:
parent
264b0c95d2
commit
22a2e62855
@ -21,9 +21,9 @@
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
/* $(function(){
|
||||
$("#DIV_Data_myiframe0_2_2").hide();
|
||||
})
|
||||
}) */
|
||||
|
||||
|
||||
function newRecord(){
|
||||
|
||||
@ -8,6 +8,7 @@ import java.util.UUID;
|
||||
|
||||
import jbo.app.tenwa.calc.VI_NORMALSETTLE_CONTRACT;
|
||||
import jbo.awe.USER_INFO;
|
||||
import jbo.com.tenwa.lease.comm.DAY_DISTRIBUTE;
|
||||
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
|
||||
import jbo.com.tenwa.lease.comm.VI_AUTODISTRIBUTE;
|
||||
import jbo.com.tenwa.lease.comm.VI_NORMALEND_CONTRACT;
|
||||
@ -53,9 +54,9 @@ public class AutoDistribute implements Job{
|
||||
JBOTransaction tx = JBOFactory.createJBOTransaction();
|
||||
ownershipTransferSign(tx,arg0);
|
||||
tx.commit();
|
||||
QuartzUtil.insertLog(startime, "quartz.ContractInfoForNomalSettle", "success", "成功", curUserId);
|
||||
QuartzUtil.insertLog(startime, "quartz.AutoDistribute", "success", "成功", curUserId);
|
||||
} catch (Exception e) {
|
||||
QuartzUtil.insertLog(startime, "quartz.ContractInfoForNomalSettle", "error", "失败", curUserId);
|
||||
QuartzUtil.insertLog(startime, "quartz.AutoDistribute", "error", "失败", curUserId);
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
@ -64,6 +65,36 @@ public class AutoDistribute implements Job{
|
||||
public void ownershipTransferSign(JBOTransaction tx ,JobExecutionContext arg0) throws Exception{
|
||||
Transaction Sqlca = null;
|
||||
Sqlca = Transaction.createTransaction(tx);
|
||||
//int beginDay1 = 0;
|
||||
//int endDay1 = 0;
|
||||
int beginDay2 = 0;
|
||||
int endDay2 = 0;
|
||||
//int beginDay3 = 0;
|
||||
//获取天数
|
||||
/*@SuppressWarnings("unchecked")
|
||||
List<BizObject> dayDistribute = JBOFactory.createBizObjectQuery(DAY_DISTRIBUTE.CLASS_NAME, "select * from O").getResultList(false);
|
||||
for (BizObject bizObject : dayDistribute) {
|
||||
String role = bizObject.getAttribute("role").toString();
|
||||
int beginDay = bizObject.getAttribute("begin_day").getInt();
|
||||
int endDay = bizObject.getAttribute("end_day").getInt();
|
||||
if("轻催组".equals(role)){
|
||||
beginDay1 = beginDay;
|
||||
endDay1 = endDay;
|
||||
}else if("中催组".equals(role)){
|
||||
beginDay2 = beginDay;
|
||||
endDay2 = endDay;
|
||||
}else{
|
||||
beginDay3 = beginDay;
|
||||
}
|
||||
}*/
|
||||
|
||||
BizObject dayDistribute = JBOFactory.createBizObjectQuery(DAY_DISTRIBUTE.CLASS_NAME, "role=:role").setParameter("role", "中催组").getSingleResult(false);
|
||||
if(dayDistribute !=null){
|
||||
beginDay2 = dayDistribute.getAttribute("begin_day").getInt();
|
||||
endDay2 = dayDistribute.getAttribute("end_day").getInt();
|
||||
}else{
|
||||
return;
|
||||
}
|
||||
|
||||
//轻催组下的用户
|
||||
String Sql1="SELECT ur.roleid,O.userid AS userid,O.loginid,O.username FROM USER_INFO O LEFT JOIN USER_ROLE AS ur ON ur.USERID = O.USERID LEFT JOIN USER_TASK_INFO uti ON uti.userid=O.userid AND uti.roleid=ur.roleid WHERE O.status='1' AND ur.roleid='800R00000041'";
|
||||
@ -117,7 +148,7 @@ public class AutoDistribute implements Job{
|
||||
//催款员
|
||||
String partDept = overdue.getAttribute("part_dept").toString();
|
||||
|
||||
if(overDay>3 && overDay<=15){
|
||||
if(overDay>=beginDay2 && overDay<=endDay2){
|
||||
if(Arrays.asList(B).contains(partDept)){
|
||||
//此催款员是中催组的人员,不做任何操作
|
||||
}else{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user