Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/frameworkcore/controller/SmPwdStrategyQueryController.java
@@ -3,6 +3,7 @@
import com.vci.frameworkcore.compatibility.SmPwdStrategyQueryServiceI;
import com.vci.frameworkcore.pagemodel.SmPasswordStrategyVO;
import com.vci.frameworkcore.pagemodel.SmUserVO;
import com.vci.starter.web.annotation.controller.VciUnCheckRight;
import com.vci.starter.web.exception.VciBaseException;
import com.vci.starter.web.pagemodel.BaseQueryObject;
import com.vci.starter.web.pagemodel.BaseResult;
@@ -15,6 +16,8 @@
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
/**
 * @author ludc
@@ -32,12 +35,13 @@
    private SmPwdStrategyQueryServiceI pwdStrategyQueryService;
    /**
     * 用户的列表参照,
     * @param queryObject 查询对象,包含了查询条件,分页,排序等,即允许使用SmUserVO里的所有属性作为查询条件,也可以使用pkRole.xxx,pkDepartment.xxx,pkDuty.xxx这样来查询
     * @return 普通用户(不包含三员,也不包含停用的)的显示对象列表数据,请获取其中的data属性
     * 密码安全策略的列表参照查询
     * @param queryObject 查询条件
     * @return
     * @throws VciBaseException 查询出错的时候会抛出异常,如果是老的项目里不抛出异常
     */
    @RequestMapping(value = "/refDataGrid",method = RequestMethod.GET)
    @VciUnCheckRight
    public BaseResult<SmPasswordStrategyVO> refDataGrid(BaseQueryObject queryObject) throws VciBaseException {
        try {
            DataGrid<SmPasswordStrategyVO> pwdStrategyVODataGrid = pwdStrategyQueryService.refDataGrid(queryObject.getConditionMap(),queryObject.getPageHelper());
@@ -50,6 +54,26 @@
        }
    }
    /**
     * 查询密码安全策略,下拉使用的接口
     * @param queryObject
     * @return key为密码策略name,value为密码策略的oid
     * @throws VciBaseException
     */
    @RequestMapping(value = "/selectPwdStrategyMap",method = RequestMethod.GET)
    @VciUnCheckRight
    public BaseResult<List<Map<String,String>>> selectPwdStrategyMap(BaseQueryObject queryObject) throws VciBaseException {
        try {
            List<Map<String,String>> pwdStrategyVODataGrid = pwdStrategyQueryService.selectPwdStrategyMap(queryObject.getConditionMap());
            return BaseResult.dataList(pwdStrategyVODataGrid);
        }catch (Exception e) {
            e.printStackTrace();
            String exceptionMessage = VciBaseUtil.getExceptionMessage(e);
            log.error("密码安全策略下拉列表查询时出现错误,原因:" + exceptionMessage);
            return BaseResult.fail("密码安全策略下拉列表查询时出现错误,原因:" + e.getMessage());
        }
    }
    @RequestMapping(value = "/saveUserPasswordStrateg",method = RequestMethod.POST)
    public BaseResult saveUserPasswordStrateg(String[] userIds, String passwordStrategId){
        try {