bug修复
parent
d5f729cdbe
commit
7360ba8cca
|
@ -25,7 +25,6 @@ public class ApiXgfUserController extends BaseController {
|
||||||
public Object synchronizationUserInfo() throws Exception {
|
public Object synchronizationUserInfo() throws Exception {
|
||||||
try {
|
try {
|
||||||
PageData request = this.getPageData();
|
PageData request = this.getPageData();
|
||||||
List<PageData> infoList = Warden.getList(request.getString("infoList"));
|
|
||||||
xgfUserService.init(request);
|
xgfUserService.init(request);
|
||||||
Map<String, Object> response = new HashMap<String, Object>();
|
Map<String, Object> response = new HashMap<String, Object>();
|
||||||
response.put("result", "response");
|
response.put("result", "response");
|
||||||
|
@ -38,7 +37,7 @@ public class ApiXgfUserController extends BaseController {
|
||||||
|
|
||||||
@RequestMapping(value = "/approvalApplication")
|
@RequestMapping(value = "/approvalApplication")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Object approvalApplication() throws Exception{
|
public Object approvalApplication() throws Exception {
|
||||||
try {
|
try {
|
||||||
PageData request = this.getPageData();
|
PageData request = this.getPageData();
|
||||||
xgfUserService.approvalApplication(request);
|
xgfUserService.approvalApplication(request);
|
||||||
|
|
|
@ -66,6 +66,23 @@ public class OpenApiController extends BaseController {
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 显示列表ztree
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value="/corpDepartment/listTree")
|
||||||
|
@ResponseBody
|
||||||
|
public Object listTreeRe()throws Exception{
|
||||||
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
|
String errInfo = "success";
|
||||||
|
JSONArray arr = JSONArray.fromObject(departmentService.listAllCorpDepartment("0"));
|
||||||
|
String json = arr.toString();
|
||||||
|
json = json.replaceAll("DEPARTMENT_ID", "id").replaceAll("PARENT_ID", "pId").replaceAll("NAME", "name").replaceAll("subDepartment", "nodes").replaceAll("hasDepartment", "checked").replaceAll("treeurl", "url");
|
||||||
|
map.put("zTreeNodes", json);
|
||||||
|
map.put("result", errInfo);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
/**列表
|
/**列表
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -2401,5 +2401,22 @@ public class UsersController extends BaseController {
|
||||||
map.put("result", errInfo);
|
map.put("result", errInfo);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @param
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/getRegUserInfo")
|
||||||
|
@ResponseBody
|
||||||
|
public Object getRegUserInfo() throws Exception {
|
||||||
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
|
String errInfo = "success";
|
||||||
|
PageData pd = new PageData();
|
||||||
|
pd = this.getPageData();
|
||||||
|
pd.put("LOCK_STATUS", "0");
|
||||||
|
pd.put("ERROR_COUNT", 0);
|
||||||
|
map.put("list",usersService.getRegUserInfo(pd));
|
||||||
|
map.put("result", errInfo);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,15 +3,16 @@ package com.zcloud.controller.xgf;
|
||||||
import com.zcloud.controller.base.BaseController;
|
import com.zcloud.controller.base.BaseController;
|
||||||
import com.zcloud.entity.Page;
|
import com.zcloud.entity.Page;
|
||||||
import com.zcloud.entity.PageData;
|
import com.zcloud.entity.PageData;
|
||||||
import com.zcloud.util.Const;
|
import com.zcloud.service.xgf.TrainingBatchService;
|
||||||
import com.zcloud.util.HttpClientService;
|
import com.zcloud.util.*;
|
||||||
import com.zcloud.util.Jurisdiction;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,14 +26,23 @@ public class FlowTrainController extends BaseController {
|
||||||
@Value("${preventionxgf.api.url}")
|
@Value("${preventionxgf.api.url}")
|
||||||
private String xgfUrl;
|
private String xgfUrl;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private TrainingBatchService trainingbatchService;
|
||||||
|
|
||||||
@RequestMapping(value="/batchList")
|
@RequestMapping(value="/batchList")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Object batchList(Page page) throws Exception{
|
public Object batchList(Page page) throws Exception{
|
||||||
PageData pd = new PageData();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
pd = this.getPageData();
|
PageData pd = this.getPageData();
|
||||||
pd.put("MAndTUserId",Jurisdiction.getUSER_ID());
|
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
|
||||||
Map result = HttpClientService.doPost(xgfUrl + "/openApi/trainingbatch/list" +getPageUrl(page), pd);
|
String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件
|
||||||
return result;
|
if (Tools.notEmpty(KEYWORDS)) pd.put("KEYWORDS", KEYWORDS.trim());
|
||||||
|
page.setPd(pd);
|
||||||
|
List<PageData> varList = trainingbatchService.list(page); //列出TrainingBatch列表
|
||||||
|
map.put("varList", varList);
|
||||||
|
map.put("page", page);
|
||||||
|
map.put("result", "success");
|
||||||
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value="/batchUserList")
|
@RequestMapping(value="/batchUserList")
|
||||||
|
|
|
@ -19,6 +19,7 @@ public class XgfUserController extends BaseController {
|
||||||
@Resource
|
@Resource
|
||||||
private XgfUserService xgfUserService;
|
private XgfUserService xgfUserService;
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value = "/list")
|
@RequestMapping(value = "/list")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Object list(Page page) throws Exception {
|
public Object list(Page page) throws Exception {
|
||||||
|
@ -43,4 +44,15 @@ public class XgfUserController extends BaseController {
|
||||||
response.put("data", request);
|
response.put("data", request);
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = "/regulatoryUserList")
|
||||||
|
@ResponseBody
|
||||||
|
public Object regulatoryUserList() throws Exception{
|
||||||
|
PageData request = this.getPageData();
|
||||||
|
|
||||||
|
PageData response = new PageData();
|
||||||
|
response.put("result", "success");
|
||||||
|
response.put("data", request);
|
||||||
|
return response;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,5 +177,9 @@ public interface DepartmentMapper{
|
||||||
PageData getInfo(PageData pd) throws Exception;
|
PageData getInfo(PageData pd) throws Exception;
|
||||||
|
|
||||||
List<PageData> listTreeManageAndCorpHasOrder(PageData pd);
|
List<PageData> listTreeManageAndCorpHasOrder(PageData pd);
|
||||||
|
|
||||||
|
List<Department> listSubCorpDepartmentByParentId(String parentId);
|
||||||
|
|
||||||
|
PageData findByCorpDepartmentId(PageData condition);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -301,4 +301,5 @@ public interface UsersMapper {
|
||||||
void resetCardNo(PageData pd);
|
void resetCardNo(PageData pd);
|
||||||
|
|
||||||
PageData getUserInfo(PageData pd);
|
PageData getUserInfo(PageData pd);
|
||||||
|
List<PageData> getUsersInfo(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -227,5 +227,9 @@ public interface DepartmentService{
|
||||||
PageData getDepartmentInfo(PageData pd) throws Exception;
|
PageData getDepartmentInfo(PageData pd) throws Exception;
|
||||||
|
|
||||||
List<PageData> listTreeManageAndCorpHasOrder(PageData pd);
|
List<PageData> listTreeManageAndCorpHasOrder(PageData pd);
|
||||||
|
|
||||||
|
List<Department> listAllCorpDepartment(String number) throws Exception;
|
||||||
|
|
||||||
|
PageData getCorpDepartment(PageData condition) throws Exception;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -352,4 +352,6 @@ public interface UsersService {
|
||||||
void resetCardNo(PageData pd);
|
void resetCardNo(PageData pd);
|
||||||
|
|
||||||
PageData getUserInfo(PageData pd);
|
PageData getUserInfo(PageData pd);
|
||||||
|
|
||||||
|
List<PageData> getRegUserInfo(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ import java.util.stream.Collectors;
|
||||||
|
|
||||||
import com.zcloud.entity.system.Menu;
|
import com.zcloud.entity.system.Menu;
|
||||||
import com.zcloud.mapper.datasource.system.SupervisionDepartmentMapper;
|
import com.zcloud.mapper.datasource.system.SupervisionDepartmentMapper;
|
||||||
|
import com.zcloud.mapper.dsno2.system.Department2Mapper;
|
||||||
import com.zcloud.util.DateUtil;
|
import com.zcloud.util.DateUtil;
|
||||||
import com.zcloud.util.Jurisdiction;
|
import com.zcloud.util.Jurisdiction;
|
||||||
import com.zcloud.util.UuidUtil;
|
import com.zcloud.util.UuidUtil;
|
||||||
|
@ -33,6 +34,9 @@ public class DepartmentServiceImpl implements DepartmentService{
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private DepartmentMapper departmentMapper;
|
private DepartmentMapper departmentMapper;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private Department2Mapper department2Mapper;
|
||||||
/**新增
|
/**新增
|
||||||
* @param pd
|
* @param pd
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
|
@ -419,5 +423,36 @@ public class DepartmentServiceImpl implements DepartmentService{
|
||||||
public List<PageData> listTreeManageAndCorpHasOrder(PageData pd) {
|
public List<PageData> listTreeManageAndCorpHasOrder(PageData pd) {
|
||||||
return departmentMapper.listTreeManageAndCorpHasOrder(pd);
|
return departmentMapper.listTreeManageAndCorpHasOrder(pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Department> listAllCorpDepartment(String parentId) throws Exception{
|
||||||
|
List<Department> departmentList = this.listSubCorpDepartmentByParentId(parentId);
|
||||||
|
for(Department depar : departmentList){
|
||||||
|
depar.setTreeurl("department_list.html?DEPARTMENT_ID="+depar.getDEPARTMENT_ID());
|
||||||
|
depar.setSubDepartment(this.listAllCorpDepartment(depar.getDEPARTMENT_ID()));
|
||||||
|
depar.setTarget("treeFrame");
|
||||||
|
depar.setIcon("../../../assets/images/user.gif");
|
||||||
|
}
|
||||||
|
return departmentList;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageData getCorpDepartment(PageData condition) throws Exception {
|
||||||
|
return departmentMapper.findByCorpDepartmentId(condition);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过ID获取其子级列表
|
||||||
|
* @param parentId
|
||||||
|
* @return
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
public List<Department> listSubCorpDepartmentByParentId(String parentId) throws Exception {
|
||||||
|
return departmentMapper.listSubCorpDepartmentByParentId(parentId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -473,4 +473,9 @@ public class UsersServiceImpl implements UsersService {
|
||||||
public PageData getUserInfo(PageData pd) {
|
public PageData getUserInfo(PageData pd) {
|
||||||
return usersMapper.getUserInfo(pd);
|
return usersMapper.getUserInfo(pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<PageData> getRegUserInfo(PageData pd) {
|
||||||
|
return usersMapper.getUsersInfo(pd);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ public interface XgfUserService {
|
||||||
|
|
||||||
List<PageData> list(Page page) throws Exception;
|
List<PageData> list(Page page) throws Exception;
|
||||||
|
|
||||||
void init(PageData request);
|
void init(PageData request) throws Exception;
|
||||||
|
|
||||||
void approvalApplication(PageData request) throws Exception;
|
void approvalApplication(PageData request) throws Exception;
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,10 @@ import com.zcloud.entity.Page;
|
||||||
import com.zcloud.entity.PageData;
|
import com.zcloud.entity.PageData;
|
||||||
import com.zcloud.mapper.datasource.xgf.XgfUserDetailsMapper;
|
import com.zcloud.mapper.datasource.xgf.XgfUserDetailsMapper;
|
||||||
import com.zcloud.mapper.datasource.xgf.XgfUserMapper;
|
import com.zcloud.mapper.datasource.xgf.XgfUserMapper;
|
||||||
|
import com.zcloud.service.bus.CorpInfoService;
|
||||||
|
import com.zcloud.service.system.DepartmentService;
|
||||||
import com.zcloud.service.xgf.XgfUserService;
|
import com.zcloud.service.xgf.XgfUserService;
|
||||||
import com.zcloud.util.DateUtil;
|
import com.zcloud.util.*;
|
||||||
import com.zcloud.util.HttpClientService;
|
|
||||||
import com.zcloud.util.HttpClientUtil;
|
|
||||||
import com.zcloud.util.Warden;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
@ -29,6 +28,9 @@ public class XgfUserServiceImpl implements XgfUserService {
|
||||||
@Resource
|
@Resource
|
||||||
private XgfUserDetailsMapper xgfUserDetailsMapper;
|
private XgfUserDetailsMapper xgfUserDetailsMapper;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private DepartmentService departmentService;
|
||||||
|
|
||||||
@Value("${preventionxgf.api.url}")
|
@Value("${preventionxgf.api.url}")
|
||||||
private String prevention_xgf_url;
|
private String prevention_xgf_url;
|
||||||
|
|
||||||
|
@ -49,11 +51,10 @@ public class XgfUserServiceImpl implements XgfUserService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional
|
@Transactional
|
||||||
public void init(PageData request) {
|
public void init(PageData request) throws Exception {
|
||||||
List<PageData> list = Warden.getList(request.getString("infoList"));
|
List<PageData> list = Warden.getList(request.getString("infoList"));
|
||||||
for (PageData x : list) {
|
|
||||||
try {
|
|
||||||
PageData condition = new PageData();
|
PageData condition = new PageData();
|
||||||
|
for (PageData x : list) {
|
||||||
if (StringUtils.isNotBlank(x.getString("USER_ID"))) {
|
if (StringUtils.isNotBlank(x.getString("USER_ID"))) {
|
||||||
condition.put("XGF_USER_ID", x.getString("USER_ID"));
|
condition.put("XGF_USER_ID", x.getString("USER_ID"));
|
||||||
PageData entity = xgfUserMapper.findById(condition);
|
PageData entity = xgfUserMapper.findById(condition);
|
||||||
|
@ -65,22 +66,29 @@ public class XgfUserServiceImpl implements XgfUserService {
|
||||||
x.put("STATUS", "2");
|
x.put("STATUS", "2");
|
||||||
x.put("CREATED_TIME", DateUtil.getTime());
|
x.put("CREATED_TIME", DateUtil.getTime());
|
||||||
x.put("OPERATOR_TIME", DateUtil.getTime());
|
x.put("OPERATOR_TIME", DateUtil.getTime());
|
||||||
|
condition.clear();
|
||||||
|
condition.put("DEPARTMENT_ID","MANAGER_DEPARTMENT_ID");
|
||||||
|
PageData regDepartmentEntity = departmentService.getCorpDepartment(condition);
|
||||||
|
x.put("MANAGER_DEPARTMENT_NAME",regDepartmentEntity.get("NAME"));
|
||||||
xgfUserMapper.save(x);
|
xgfUserMapper.save(x);
|
||||||
xgfUserDetailsMapper.save(x);
|
xgfUserDetailsMapper.save(x);
|
||||||
} else {
|
} else {
|
||||||
x.put("XGF_USER_ID", x.get("USER_ID"));
|
x.put("XGF_USER_ID", x.get("USER_ID"));
|
||||||
x.put("XFG_USER_DETAILS_ID", x.get("USER_ID"));
|
x.put("XGF_USER_DETAILS_ID", x.get("USER_ID"));
|
||||||
x.put("ISDELETE", "0");
|
x.put("ISDELETE", "0");
|
||||||
x.put("OPERATOR_TIME", DateUtil.getTime());
|
x.put("OPERATOR_TIME", DateUtil.getTime());
|
||||||
|
condition.clear();
|
||||||
|
condition.put("DEPARTMENT_ID",x.get("MANAGER_DEPARTMENT_ID"));
|
||||||
|
PageData regDepartmentEntity = departmentService.getCorpDepartment(condition);
|
||||||
|
x.put("MANAGER_DEPARTMENT_NAME",regDepartmentEntity.get("NAME"));
|
||||||
|
|
||||||
|
x.put("ISDELETE", "0");
|
||||||
|
x.put("VALID_FLAG", "1");
|
||||||
|
x.put("STATUS", "2");
|
||||||
xgfUserMapper.edit(x);
|
xgfUserMapper.edit(x);
|
||||||
xgfUserDetailsMapper.edit(x);
|
xgfUserDetailsMapper.edit(x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
throw new RuntimeException("保存数据失败");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -579,4 +579,17 @@
|
||||||
DEP_ORDER ASC,
|
DEP_ORDER ASC,
|
||||||
name
|
name
|
||||||
</select>
|
</select>
|
||||||
|
<select id="listSubCorpDepartmentByParentId" parameterType="String" resultMap="departmentResultMap">
|
||||||
|
select * from `qa-gwj-regulatory`.SYS_DEPARTMENT
|
||||||
|
where 1=1
|
||||||
|
<if test="_parameter != null and _parameter != ''"><!-- 关键词检索 -->
|
||||||
|
and PARENT_ID = #{parentId}
|
||||||
|
</if>
|
||||||
|
order by DEP_ORDER asc, NAME
|
||||||
|
</select>
|
||||||
|
<select id="findByCorpDepartmentId" resultType="com.zcloud.entity.PageData">
|
||||||
|
select * from `qa-gwj-regulatory`.SYS_DEPARTMENT
|
||||||
|
where DEPARTMENT_ID = #{DEPARTMENT_ID}
|
||||||
|
order by DEP_ORDER asc, NAME
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -1328,4 +1328,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
<select id="getUsersInfo" resultType="com.zcloud.entity.PageData">
|
||||||
|
select * from `qa-gwj-regulatory`.SYS_USER where 1=1
|
||||||
|
<if test="USER_ID != null and USER_ID != ''">
|
||||||
|
and USER_ID = #{USER_ID}
|
||||||
|
</if>
|
||||||
|
<if test="USER_IDS != null and USER_IDS != ''">
|
||||||
|
and USER_ID in
|
||||||
|
<foreach item="item" index="index" collection="USER_IDS" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test="DEPARTMENT_ID != null and DEPARTMENT_ID != null">
|
||||||
|
and DEPARTMENT_ID = #{DEPARTMENT_ID}
|
||||||
|
</if>
|
||||||
|
<if test="ISASSESS != null and ISASSESS != null">
|
||||||
|
and ISASSESS = #{ISASSESS}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<!--表名 -->
|
<!--表名 -->
|
||||||
<sql id="tableName">
|
<sql id="tableName">
|
||||||
BUS_TRAININGBATCH
|
xgf_training_batch
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!--数据字典表名 -->
|
<!--数据字典表名 -->
|
||||||
|
@ -201,20 +201,20 @@
|
||||||
from
|
from
|
||||||
<include refid="tableName"></include> f
|
<include refid="tableName"></include> f
|
||||||
left join vi_department_all ma on ma.DEPARTMENT_ID = f.MANAGER
|
left join vi_department_all ma on ma.DEPARTMENT_ID = f.MANAGER
|
||||||
left join vi_corp_user ma_u on ma_u.USER_ID = f.MANAGER_USER_ID
|
left join vi_user_all ma_u on ma_u.USER_ID = f.MANAGER_USER_ID
|
||||||
left join vi_department_all su on su.DEPARTMENT_ID = f.SUPERVISION
|
left join vi_department_all su on su.DEPARTMENT_ID = f.SUPERVISION
|
||||||
left join vi_regulatory_user su_u on su_u.USER_ID = f.SUPERVISION_USER_ID
|
left join vi_regulatory_user su_u on su_u.USER_ID = f.SUPERVISION_USER_ID
|
||||||
left join vi_department_all te on te.DEPARTMENT_ID = f.TERRITORIALITY
|
left join vi_department_all te on te.DEPARTMENT_ID = f.TERRITORIALITY
|
||||||
left join vi_corp_user te_u on te_u.USER_ID = f.TERRITORIALITY_USER_ID
|
left join vi_user_all te_u on te_u.USER_ID = f.TERRITORIALITY_USER_ID
|
||||||
left join vi_corp_user cu on cu.USER_ID = f.TRAIN_CORP_LEADER
|
left join vi_user_all cu on cu.USER_ID = f.TRAIN_CORP_LEADER
|
||||||
left join sys_dictionaries d on d.DICTIONARIES_ID = f.TRAIN_AREA
|
left join sys_dictionaries d on d.DICTIONARIES_ID = f.TRAIN_AREA
|
||||||
left join bus_corpinfo c on c.CORPINFO_ID = f.CORPINFO_ID
|
left join bus_corpinfo c on c.CORPINFO_ID = f.CORPINFO_ID
|
||||||
left join BUS_CORPINFODETAILS bcd on bcd.CORPINFO_ID = c.CORPINFO_ID
|
left join BUS_CORPINFODETAILS bcd on bcd.CORPINFO_ID = c.CORPINFO_ID
|
||||||
left join sys_dictionaries corpTypeDic on corpTypeDic.BIANMA = bcd.CORP_TYPE
|
left join sys_dictionaries corpTypeDic on corpTypeDic.BIANMA = bcd.CORP_TYPE
|
||||||
left join vi_regulatory_department md on md.DEPARTMENT_ID = c.MAIN_DEPARTMENT
|
left join vi_regulatory_department md on md.DEPARTMENT_ID = c.MAIN_DEPARTMENT
|
||||||
left join sys_user syu on syu.USERNAME = f.CREATOR
|
left join sys_user syu on syu.USERNAME = f.CREATOR
|
||||||
left join vi_corp_user vcu on vcu.USERNAME = f.CREATOR
|
left join vi_user_all vcu on vcu.USERNAME = f.CREATOR
|
||||||
left join vi_corp_department vcd on vcd.DEPARTMENT_ID = c.SUPERVISE_DEPARTMENT_ID
|
left join vi_department_all vcd on vcd.DEPARTMENT_ID = c.SUPERVISE_DEPARTMENT_ID
|
||||||
left join vi_corp_info vci on vci.CORPINFO_ID = c.SUPERVISE_CORPINFO_ID
|
left join vi_corp_info vci on vci.CORPINFO_ID = c.SUPERVISE_CORPINFO_ID
|
||||||
where 1=1
|
where 1=1
|
||||||
<if test="pd.TYPE != null and pd.TYPE != ''">
|
<if test="pd.TYPE != null and pd.TYPE != ''">
|
||||||
|
|
|
@ -50,7 +50,8 @@
|
||||||
f.IS_LEVEL_THREE,
|
f.IS_LEVEL_THREE,
|
||||||
f.IS_BODY_ADAPT,
|
f.IS_BODY_ADAPT,
|
||||||
f.IS_SPECIAL_JOB,
|
f.IS_SPECIAL_JOB,
|
||||||
f.CORPINFO_ID
|
f.CORPINFO_ID,
|
||||||
|
f.MANAGER_DEPARTMENT_ID
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- 字段用于新增 -->
|
<!-- 字段用于新增 -->
|
||||||
|
@ -96,7 +97,9 @@
|
||||||
IS_LEVEL_THREE,
|
IS_LEVEL_THREE,
|
||||||
IS_BODY_ADAPT,
|
IS_BODY_ADAPT,
|
||||||
IS_SPECIAL_JOB,
|
IS_SPECIAL_JOB,
|
||||||
CORPINFO_ID
|
CORPINFO_ID,
|
||||||
|
MANAGER_DEPARTMENT_ID,
|
||||||
|
MANAGER_DEPARTMENT_NAME
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- 字段值 -->
|
<!-- 字段值 -->
|
||||||
|
@ -142,7 +145,9 @@
|
||||||
#{IS_LEVEL_THREE},
|
#{IS_LEVEL_THREE},
|
||||||
#{IS_BODY_ADAPT},
|
#{IS_BODY_ADAPT},
|
||||||
#{IS_SPECIAL_JOB},
|
#{IS_SPECIAL_JOB},
|
||||||
#{CORPINFO_ID}
|
#{CORPINFO_ID},
|
||||||
|
#{MANAGER_DEPARTMENT_ID},
|
||||||
|
#{MANAGER_DEPARTMENT_NAME}
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- 新增-->
|
<!-- 新增-->
|
||||||
|
@ -212,7 +217,9 @@
|
||||||
IS_LEVEL_THREE = #{IS_LEVEL_THREE},
|
IS_LEVEL_THREE = #{IS_LEVEL_THREE},
|
||||||
IS_BODY_ADAPT = #{IS_BODY_ADAPT},
|
IS_BODY_ADAPT = #{IS_BODY_ADAPT},
|
||||||
IS_SPECIAL_JOB = #{IS_SPECIAL_JOB},
|
IS_SPECIAL_JOB = #{IS_SPECIAL_JOB},
|
||||||
CORPINFO_ID = #{CORPINFO_ID}
|
CORPINFO_ID = #{CORPINFO_ID},
|
||||||
|
MANAGER_DEPARTMENT_ID = #{MANAGER_DEPARTMENT_ID},
|
||||||
|
MANAGER_DEPARTMENT_NAME = #{MANAGER_DEPARTMENT_NAME}
|
||||||
where
|
where
|
||||||
XGF_USER_DETAILS_ID = #{XGF_USER_DETAILS_ID}
|
XGF_USER_DETAILS_ID = #{XGF_USER_DETAILS_ID}
|
||||||
</update>
|
</update>
|
||||||
|
|
|
@ -185,7 +185,8 @@
|
||||||
select
|
select
|
||||||
<include refid="Field"></include>
|
<include refid="Field"></include>
|
||||||
from
|
from
|
||||||
<include refid="tableName"></include> f
|
<include refid="tableName"></include>
|
||||||
|
f
|
||||||
where f.ISDELETE = '0'
|
where f.ISDELETE = '0'
|
||||||
and XGF_USER_ID in
|
and XGF_USER_ID in
|
||||||
<foreach item="item" index="index" collection="XGF_USER_IDS" open="(" separator="," close=")">
|
<foreach item="item" index="index" collection="XGF_USER_IDS" open="(" separator="," close=")">
|
||||||
|
@ -193,7 +194,12 @@
|
||||||
</foreach>
|
</foreach>
|
||||||
</select>
|
</select>
|
||||||
<select id="flowlistPage" resultType="com.zcloud.entity.PageData">
|
<select id="flowlistPage" resultType="com.zcloud.entity.PageData">
|
||||||
select * from xgf_user a where a.STATUS = '1'
|
select a.XGF_USER_ID,a.BELONG_TO_CORP_NAME,a.USERNAME,a.NAME,b.MANAGER_DEPARTMENT_ID from xgf_user a
|
||||||
|
left join xgf_user_details b on a.XGF_USER_ID = b.XGF_USER_ID
|
||||||
|
where 1=1
|
||||||
|
<if test="pd.STATUS != null and pd.STATUS != ''">
|
||||||
|
and a.STATUS = #{pd.STATUS}
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
Loading…
Reference in New Issue