|
|
package com.customization.receive;
|
|
|
|
|
|
import com.api.meeting.util.MeetingPrmUtil;
|
|
|
import com.engine.core.cfg.annotation.CommandDynamicProxy;
|
|
|
import com.engine.core.interceptor.AbstractCommandProxy;
|
|
|
import com.engine.core.interceptor.Command;
|
|
|
import com.engine.meeting.cmd.meetingbase.NewMeetingCmd;
|
|
|
import com.engine.workplan.cmd.workplanBase.ViewWorkplanCmd;
|
|
|
import com.engine.workplan.cmd.workplanExchange.GetExchangeListCmd;
|
|
|
import org.apache.commons.httpclient.util.DateUtil;
|
|
|
import weaver.common.StringUtil;
|
|
|
import weaver.conn.RecordSet;
|
|
|
import weaver.conn.RecordSetTrans;
|
|
|
import weaver.formmode.setup.ModeRightInfo;
|
|
|
import weaver.general.Util;
|
|
|
import weaver.hrm.User;
|
|
|
|
|
|
import java.util.Date;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* Created by oceanxu on 2019/8/28.
|
|
|
*/
|
|
|
@CommandDynamicProxy(target = ViewWorkplanCmd.class, desc="日程")
|
|
|
public class UpdateStateByWorkPlanCmd extends AbstractCommandProxy<Map<String,Object>> {
|
|
|
@Override
|
|
|
public Map<String, Object> execute(Command<Map<String, Object>> command) {
|
|
|
ViewWorkplanCmd viewWorkplanCmd = (ViewWorkplanCmd)command;
|
|
|
User user = viewWorkplanCmd.getUser();
|
|
|
Integer userid = user.getUID();
|
|
|
//获取被代理对象的参数
|
|
|
Map<String, Object> params = viewWorkplanCmd.getParams();
|
|
|
//对参数做预处理
|
|
|
String workplanid = Util.null2String(params.get("workid"));
|
|
|
|
|
|
MeetingPrmUtil mpu = new MeetingPrmUtil(user, workplanid);
|
|
|
// //TODO
|
|
|
// for (Map.Entry<String, Object> entry : params.entrySet()) {
|
|
|
// System.out.println("参数:Key = " + entry.getKey() + ", Value = " + entry.getValue());
|
|
|
// }
|
|
|
|
|
|
//参数回写
|
|
|
viewWorkplanCmd.setParams(params);
|
|
|
//执行标准的业务处理
|
|
|
Map<String, Object> result = nextExecute(command);
|
|
|
//对返回值做加工处理
|
|
|
try{
|
|
|
String sql = "update uf_ldtz_dt3 t set t.syzt='1' where t.rcid ="+workplanid+" and t.xm="+userid;
|
|
|
RecordSet rs = new RecordSet();
|
|
|
rs.executeUpdate(sql);
|
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
|
|
|
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|