package com.engine.zjrb.pattern.cmd;

import com.engine.common.biz.AbstractCommonCommand;
import com.engine.common.entity.BizLogContext;
import com.engine.core.interceptor.CommandContext;
import org.apache.commons.lang3.StringUtils;
import weaver.conn.RecordSet;
import weaver.formmode.setup.ModeRightInfo;
import weaver.general.BaseBean;
import weaver.general.Util;
import weaver.hrm.User;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

public class PatternUnlockingResetCmd extends AbstractCommonCommand<Map<String,Object>> {

    public PatternUnlockingResetCmd(Map<String,Object> params, User user) {
        this.params = params;
        this.user = user;
    }

    @Override
    public BizLogContext getLogContext() {
        return null;
    }

    @Override
    public Map<String, Object> execute(CommandContext commandContext) {
        Map<String, Object> returnMap = new HashMap<String,Object>();
        BaseBean bb = new BaseBean();
        int userid = user.getUID();
        String name = "";
        int departmentid = user.getUserDepartment();
        int subcompanyid = user.getUserSubCompany1();
        bb.writeLog("departmentid:"+departmentid);
        bb.writeLog("subcompanyid:"+subcompanyid);
        RecordSet rs = new RecordSet();

        try{

        }catch (Exception e){
            e.printStackTrace();
            bb.writeLog("e:"+e);
        }
        if(StringUtils.isBlank(name)){
            name = "系统管理员";
        }
        returnMap.put("name",name);
        return returnMap;
    }
}
