合并分支 'dev_20230216' 到 'master'
Dev 20230216 查看合并请求 laws-foton-slrs/foton-slrs-system-rest!64
This commit is contained in:
@@ -20,6 +20,7 @@ import com.adc.da.slrs.sarStandAttrInfo.service.ISarStandAttrInfoService;
|
|||||||
import com.adc.da.slrs.sarStandItems.dao.SarStandItemsDao;
|
import com.adc.da.slrs.sarStandItems.dao.SarStandItemsDao;
|
||||||
import com.adc.da.slrs.sarStandItems.entity.SarStandItems;
|
import com.adc.da.slrs.sarStandItems.entity.SarStandItems;
|
||||||
import com.adc.da.slrs.sarStandVal.entity.SarStandVal;
|
import com.adc.da.slrs.sarStandVal.entity.SarStandVal;
|
||||||
|
import com.adc.da.slrs.sarStandardsInfo.dao.SarStandardsInfoDao;
|
||||||
import com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo;
|
import com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo;
|
||||||
import com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfoEOPage;
|
import com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfoEOPage;
|
||||||
import com.adc.da.slrs.sarStandardsInfo.service.ISarStandardsInfoService;
|
import com.adc.da.slrs.sarStandardsInfo.service.ISarStandardsInfoService;
|
||||||
@@ -88,6 +89,9 @@ public class ActSarItemsEOService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private SarStandItemValDao sarStandItemValEODao;
|
private SarStandItemValDao sarStandItemValEODao;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SarStandardsInfoDao sarStandardsInfoDao;
|
||||||
|
|
||||||
|
|
||||||
@Value("${elas.flag}")
|
@Value("${elas.flag}")
|
||||||
private boolean elasflag;
|
private boolean elasflag;
|
||||||
@@ -192,6 +196,22 @@ public class ActSarItemsEOService {
|
|||||||
// attInfoMap = saveFileMsg(attInfoMap,sarStandardsInfoEO.getFileIds(),sarStandardsInfoEO.getTextStatus());
|
// attInfoMap = saveFileMsg(attInfoMap,sarStandardsInfoEO.getFileIds(),sarStandardsInfoEO.getTextStatus());
|
||||||
String resData = JSON.toJSONString(attInfoMap, SerializerFeature.WriteMapNullValue);
|
String resData = JSON.toJSONString(attInfoMap, SerializerFeature.WriteMapNullValue);
|
||||||
sarStandardsInfoEO.setSarStandAttrEOStr(resData);
|
sarStandardsInfoEO.setSarStandAttrEOStr(resData);
|
||||||
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(sarStandardsInfoEO.getReplaceStandNum())){
|
||||||
|
sarStandardsInfoDao.updateById(sarStandardsInfoEO);
|
||||||
|
String id = sarStandardsInfoEO.getStandName();
|
||||||
|
SarStandardsInfo sarStandardsInfo = sarStandardsInfoDao.selectBy(id);
|
||||||
|
if (sarStandardsInfo != null){
|
||||||
|
String textStatus = "chblaarg77";
|
||||||
|
sarStandardsInfo.setTextStatus(textStatus);
|
||||||
|
sarStandardsInfoDao.updateById(sarStandardsInfo);
|
||||||
|
}
|
||||||
|
SarStandardsInfo sarStandardsInfo1 = sarStandardsInfoDao.selectBy1(id);
|
||||||
|
if (sarStandardsInfo1 != null){
|
||||||
|
String textStatus = "chblaarg77";
|
||||||
|
sarStandardsInfo1.setTextStatus(textStatus);
|
||||||
|
sarStandardsInfoDao.updateById(sarStandardsInfo1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 根据标准号判断数据是否已存在
|
// 根据标准号判断数据是否已存在
|
||||||
//2021年4月9日 此处检查当前是否存在standId
|
//2021年4月9日 此处检查当前是否存在standId
|
||||||
|
|||||||
+9
@@ -11,6 +11,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
@@ -77,5 +78,13 @@ public class SarBussionessStandStatePage extends BasePage {
|
|||||||
@ApiModelProperty(value = "标准类别")
|
@ApiModelProperty(value = "标准类别")
|
||||||
private String menuId;
|
private String menuId;
|
||||||
|
|
||||||
|
private List<String> menuAllChildrenIdList;
|
||||||
|
|
||||||
|
private String userId;
|
||||||
|
|
||||||
|
private String treeType;
|
||||||
|
|
||||||
|
private List<String> menuRoleList;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+109
@@ -5,7 +5,14 @@ import com.adc.da.slrs.sarBussionessStandState.entity.SarBussionessStandState;
|
|||||||
import com.adc.da.slrs.sarBussionessStandState.dao.SarBussionessStandStateDao;
|
import com.adc.da.slrs.sarBussionessStandState.dao.SarBussionessStandStateDao;
|
||||||
import com.adc.da.slrs.sarBussionessStandState.entity.SarBussionessStandStatePage;
|
import com.adc.da.slrs.sarBussionessStandState.entity.SarBussionessStandStatePage;
|
||||||
import com.adc.da.slrs.sarBussionessStandState.service.ISarBussionessStandStateService;
|
import com.adc.da.slrs.sarBussionessStandState.service.ISarBussionessStandStateService;
|
||||||
|
import com.adc.da.slrs.sarResource.entity.TsResource;
|
||||||
|
import com.adc.da.slrs.sarResource.service.ITsResourceService;
|
||||||
|
import com.adc.da.slrs.sarUser.service.ITsUserService;
|
||||||
|
import com.adc.da.sys.sarMenuStandard.service.ISarMenuStandardService;
|
||||||
|
import com.adc.da.util.utils.StringUtils;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -21,6 +28,15 @@ import java.util.List;
|
|||||||
@Service
|
@Service
|
||||||
public class SarBussionessStandStateServiceImpl extends ServiceImpl<SarBussionessStandStateDao, SarBussionessStandState> implements ISarBussionessStandStateService {
|
public class SarBussionessStandStateServiceImpl extends ServiceImpl<SarBussionessStandStateDao, SarBussionessStandState> implements ISarBussionessStandStateService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ISarMenuStandardService iSarMenuStandardService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ITsResourceService iTsResourceService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ITsUserService tsUserService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ModelData> getSarBussionessStandStateProcessList(SarBussionessStandStatePage page){
|
public List<ModelData> getSarBussionessStandStateProcessList(SarBussionessStandStatePage page){
|
||||||
List<ModelData> stateList = this.baseMapper.getSarBussionessStandStateProcessList(page);
|
List<ModelData> stateList = this.baseMapper.getSarBussionessStandStateProcessList(page);
|
||||||
@@ -29,6 +45,54 @@ public class SarBussionessStandStateServiceImpl extends ServiceImpl<SarBussiones
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<SarBussionessStandState> getSarBussionessStandStatePageNo(SarBussionessStandStatePage page) throws Exception{
|
public List<SarBussionessStandState> getSarBussionessStandStatePageNo(SarBussionessStandStatePage page) throws Exception{
|
||||||
|
if(page.getMenuId()!=null && StringUtils.isNotBlank(page.getMenuId())){
|
||||||
|
|
||||||
|
}
|
||||||
|
//查询当前登录人角色拥有权限的菜单
|
||||||
|
if(page.getMenuId() != null && page.getUserId() != null && StringUtils.isNotBlank(page.getUserId())){
|
||||||
|
String treeType = page.getTreeType();
|
||||||
|
QueryWrapper<TsResource> qw = new QueryWrapper<>();
|
||||||
|
qw.eq("ID",page.getMenuId());
|
||||||
|
qw.isNull("PARENT_ID");
|
||||||
|
List<TsResource> children = iTsResourceService.list(qw);
|
||||||
|
|
||||||
|
if(children.isEmpty() && !page.getMenuId().equals("nomenu") && StringUtils.isNotBlank(treeType) && "tsr".equals(treeType)){
|
||||||
|
List<String> getMenuIdList = tsUserService.getResourceUserId(page.getUserId());
|
||||||
|
if (getMenuIdList != null && !getMenuIdList.isEmpty()) {
|
||||||
|
page.setMenuRoleList(getMenuIdList);
|
||||||
|
} else {
|
||||||
|
page.setMenuRoleList(null);
|
||||||
|
}
|
||||||
|
List<String> ids = iTsResourceService.getChildMenuList(page.getMenuId());
|
||||||
|
if (ids != null && !ids.isEmpty()) {
|
||||||
|
page.setMenuAllChildrenIdList(ids);
|
||||||
|
}
|
||||||
|
}else if(!page.getMenuId().equals("nomenu") && StringUtils.isNotBlank(treeType) && "sarMs".equals(treeType)){
|
||||||
|
List<String> getMenuIdList = tsUserService.getResourceUserId(page.getUserId());
|
||||||
|
if (getMenuIdList != null && !getMenuIdList.isEmpty()) {
|
||||||
|
page.setMenuRoleList(getMenuIdList);
|
||||||
|
} else {
|
||||||
|
page.setMenuRoleList(null);
|
||||||
|
}
|
||||||
|
List<String> ids = iSarMenuStandardService.getChildMenuList(page.getMenuId());
|
||||||
|
if (ids != null && !ids.isEmpty()) {
|
||||||
|
page.setMenuAllChildrenIdList(ids);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// if(children.isEmpty() && !page.getMenuId().equals("nomenu")){
|
||||||
|
// List<String> getMenuIdList = tsUserService.getResourceUserId(page.getUserId());
|
||||||
|
// if (getMenuIdList != null && !getMenuIdList.isEmpty()) {
|
||||||
|
// page.setMenuRoleList(getMenuIdList);
|
||||||
|
// } else {
|
||||||
|
// page.setMenuRoleList(null);
|
||||||
|
// }
|
||||||
|
// List<String> ids = iTsResourceService.getChildMenuList(page.getMenuId());
|
||||||
|
// if (ids != null && !ids.isEmpty()) {
|
||||||
|
// page.setMenuAllChildrenIdList(ids);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
}
|
||||||
Integer rowCount = this.baseMapper.getBussionessStandStateCountNo(page);
|
Integer rowCount = this.baseMapper.getBussionessStandStateCountNo(page);
|
||||||
page.getPager().setRowCount(rowCount);
|
page.getPager().setRowCount(rowCount);
|
||||||
List<SarBussionessStandState> stateList = this.baseMapper.getSarBussionessStandStatePageNo(page);
|
List<SarBussionessStandState> stateList = this.baseMapper.getSarBussionessStandStatePageNo(page);
|
||||||
@@ -37,6 +101,51 @@ public class SarBussionessStandStateServiceImpl extends ServiceImpl<SarBussiones
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<SarBussionessStandState> getSarBussionessStandStatePage(SarBussionessStandStatePage page) throws Exception{
|
public List<SarBussionessStandState> getSarBussionessStandStatePage(SarBussionessStandStatePage page) throws Exception{
|
||||||
|
//查询当前登录人角色拥有权限的菜单
|
||||||
|
if(page.getMenuId() != null && page.getUserId() != null && StringUtils.isNotBlank(page.getUserId())){
|
||||||
|
String treeType = page.getTreeType();
|
||||||
|
QueryWrapper<TsResource> qw = new QueryWrapper<>();
|
||||||
|
qw.eq("ID",page.getMenuId());
|
||||||
|
qw.isNull("PARENT_ID");
|
||||||
|
List<TsResource> children = iTsResourceService.list(qw);
|
||||||
|
|
||||||
|
if(children.isEmpty() && !page.getMenuId().equals("nomenu") && StringUtils.isNotBlank(treeType) && "tsr".equals(treeType)){
|
||||||
|
List<String> getMenuIdList = tsUserService.getResourceUserId(page.getUserId());
|
||||||
|
if (getMenuIdList != null && !getMenuIdList.isEmpty()) {
|
||||||
|
page.setMenuRoleList(getMenuIdList);
|
||||||
|
} else {
|
||||||
|
page.setMenuRoleList(null);
|
||||||
|
}
|
||||||
|
List<String> ids = iTsResourceService.getChildMenuList(page.getMenuId());
|
||||||
|
if (ids != null && !ids.isEmpty()) {
|
||||||
|
page.setMenuAllChildrenIdList(ids);
|
||||||
|
}
|
||||||
|
}else if(!page.getMenuId().equals("nomenu") && StringUtils.isNotBlank(treeType) && "sarMs".equals(treeType)){
|
||||||
|
List<String> getMenuIdList = tsUserService.getResourceUserId(page.getUserId());
|
||||||
|
if (getMenuIdList != null && !getMenuIdList.isEmpty()) {
|
||||||
|
page.setMenuRoleList(getMenuIdList);
|
||||||
|
} else {
|
||||||
|
page.setMenuRoleList(null);
|
||||||
|
}
|
||||||
|
List<String> ids = iSarMenuStandardService.getChildMenuList(page.getMenuId());
|
||||||
|
if (ids != null && !ids.isEmpty()) {
|
||||||
|
page.setMenuAllChildrenIdList(ids);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// if(children.isEmpty() && !page.getMenuId().equals("nomenu")){
|
||||||
|
// List<String> getMenuIdList = tsUserService.getResourceUserId(page.getUserId());
|
||||||
|
// if (getMenuIdList != null && !getMenuIdList.isEmpty()) {
|
||||||
|
// page.setMenuRoleList(getMenuIdList);
|
||||||
|
// } else {
|
||||||
|
// page.setMenuRoleList(null);
|
||||||
|
// }
|
||||||
|
// List<String> ids = iTsResourceService.getChildMenuList(page.getMenuId());
|
||||||
|
// if (ids != null && !ids.isEmpty()) {
|
||||||
|
// page.setMenuAllChildrenIdList(ids);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
}
|
||||||
Integer rowCount = this.baseMapper.getBussionessStandStateCount(page);
|
Integer rowCount = this.baseMapper.getBussionessStandStateCount(page);
|
||||||
page.getPager().setRowCount(rowCount);
|
page.getPager().setRowCount(rowCount);
|
||||||
List<SarBussionessStandState> stateList = this.baseMapper.getBussionessStandStatePage(page);
|
List<SarBussionessStandState> stateList = this.baseMapper.getBussionessStandStatePage(page);
|
||||||
|
|||||||
+5
@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.apache.ibatis.annotations.Update;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
@@ -117,5 +118,9 @@ public interface SarStandardsInfoDao extends BaseMapper<SarStandardsInfo> {
|
|||||||
List<SarStandardsInfo> listQuery2(SarStandardsInfoEOPage page);
|
List<SarStandardsInfo> listQuery2(SarStandardsInfoEOPage page);
|
||||||
|
|
||||||
List<SarStandardsInfo> selectStandardsByStandnumber2(SarStandardsInfo sarStandardsInfoEO);
|
List<SarStandardsInfo> selectStandardsByStandnumber2(SarStandardsInfo sarStandardsInfoEO);
|
||||||
|
|
||||||
|
SarStandardsInfo selectBy(String id);
|
||||||
|
|
||||||
|
SarStandardsInfo selectBy1(String id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+17
@@ -88,6 +88,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import net.sf.json.JSONObject;
|
import net.sf.json.JSONObject;
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.util.PDFTextStripper;
|
import org.apache.pdfbox.util.PDFTextStripper;
|
||||||
@@ -1329,6 +1330,22 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
// 多时间处理
|
// 多时间处理
|
||||||
createStandPutTime(sarStandardsInfoEO.getId(), multiTimeMap);
|
createStandPutTime(sarStandardsInfoEO.getId(), multiTimeMap);
|
||||||
}
|
}
|
||||||
|
if (StringUtils.isNotBlank(sarStandardsInfoEO.getReplaceStandNum())){
|
||||||
|
dao.updateById(sarStandardsInfoEO);
|
||||||
|
String id = sarStandardsInfoEO.getStandName();
|
||||||
|
SarStandardsInfo sarStandardsInfo = dao.selectBy(id);
|
||||||
|
if (sarStandardsInfo != null){
|
||||||
|
String textStatus = "chblaarg77";
|
||||||
|
sarStandardsInfo.setTextStatus(textStatus);
|
||||||
|
dao.updateById(sarStandardsInfo);
|
||||||
|
}
|
||||||
|
SarStandardsInfo sarStandardsInfo1 = dao.selectBy1(id);
|
||||||
|
if (sarStandardsInfo1 != null){
|
||||||
|
String textStatus = "chblaarg77";
|
||||||
|
sarStandardsInfo1.setTextStatus(textStatus);
|
||||||
|
dao.updateById(sarStandardsInfo1);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/***
|
/***
|
||||||
|
|||||||
+7
-7
@@ -568,14 +568,14 @@
|
|||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<!-- 游离态标准查询 -->
|
<!-- 游离态标准查询 -->
|
||||||
<!-- <if test="menuId != null and menuId =='nomenu'" >-->
|
<!-- <if test="menuId != null and menuId =='nomenu'" >-->
|
||||||
<!-- and SAR_BUSS_STAND_MENU.MENU_ID = (select TS_RESOURCE.id from TS_RESOURCE WHERE parent_id is null and sor_divide ='BUSINESS_STAND' and valid_flag=0)-->
|
<!-- and SAR_BUSS_STAND_MENU.MENU_ID = (select TS_RESOURCE.id from TS_RESOURCE WHERE parent_id is null and sor_divide ='BUSINESS_STAND' and valid_flag=0)-->
|
||||||
<!-- </if>-->
|
<!-- </if>-->
|
||||||
<!-- 当第一次进入页面未选择记录时-->
|
<!-- 当第一次进入页面未选择记录时-->
|
||||||
<!-- <if test="(menuId == null or menuId =='') and menuRoleList == null" >-->
|
<!-- <if test="(menuId == null or menuId =='') and menuRoleList == null" >-->
|
||||||
<!-- and SAR_BUSS_STAND_MENU.MENU_ID in ( SELECT TS_RESOURCE.id FROM TS_RESOURCE START WITH id =(-->
|
<!-- and SAR_BUSS_STAND_MENU.MENU_ID in ( SELECT TS_RESOURCE.id FROM TS_RESOURCE START WITH id =(-->
|
||||||
<!-- SELECT TS_RESOURCE.id FROM TS_RESOURCE WHERE parent_id IS NULL AND sor_divide = 'BUSINESS_STAND' and valid_flag=0 ) CONNECT BY PRIOR id = parent_id )-->
|
<!-- SELECT TS_RESOURCE.id FROM TS_RESOURCE WHERE parent_id IS NULL AND sor_divide = 'BUSINESS_STAND' and valid_flag=0 ) CONNECT BY PRIOR id = parent_id )-->
|
||||||
<!-- </if>-->
|
<!-- </if>-->
|
||||||
<!-- 新修改需求,根据角色查询有权限的菜单数据-->
|
<!-- 新修改需求,根据角色查询有权限的菜单数据-->
|
||||||
<if test="menuRoleList != null">
|
<if test="menuRoleList != null">
|
||||||
and SAR_BUSS_STAND_MENU.MENU_ID in
|
and SAR_BUSS_STAND_MENU.MENU_ID in
|
||||||
|
|||||||
+113
-3
@@ -21,7 +21,9 @@
|
|||||||
sar_bussioness_stand_state.MODIFY_TIME,
|
sar_bussioness_stand_state.MODIFY_TIME,
|
||||||
sar_bussioness_stand_state.VALID_FLAG,
|
sar_bussioness_stand_state.VALID_FLAG,
|
||||||
sar_bussioness_stand_state.PARAM1,
|
sar_bussioness_stand_state.PARAM1,
|
||||||
sar_bussioness_stand_state.PARAM2
|
sar_bussioness_stand_state.PARAM2,
|
||||||
|
sar_buss_stand_attr_info.QCDW As 'QCDW',
|
||||||
|
sar_buss_stand_attr_info.QCRBUSS AS 'QCRBUSS'
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="Base_Column_List_buss" >
|
<sql id="Base_Column_List_buss" >
|
||||||
DISTINCT sar_bussioness_stand.ID,
|
DISTINCT sar_bussioness_stand.ID,
|
||||||
@@ -117,6 +119,35 @@
|
|||||||
<if test="QCDW != null and QCDW != '' " >
|
<if test="QCDW != null and QCDW != '' " >
|
||||||
and QCDW like concat(concat('%',#{QCDW}),'%')
|
and QCDW like concat(concat('%',#{QCDW}),'%')
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
|
||||||
|
<if test="menuId != null and menuId =='nomenu' and menuAllChildrenIdList != null and menuAllChildrenIdList.size()>0 and sarMsType != null and sarMsType == 'filterSarMsMenu'" >
|
||||||
|
and SAR_BUSS_STAND_MENU.MENU_ID IS NULL
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<!-- 目录判断 -->
|
||||||
|
<if test="menuId != null and menuId !='nomenu' and menuAllChildrenIdList != null and menuAllChildrenIdList.size()>0 " >
|
||||||
|
and SAR_BUSS_STAND_MENU.MENU_ID in
|
||||||
|
<foreach collection="menuAllChildrenIdList" index="index" item="item" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<!-- 游离态标准查询 -->
|
||||||
|
<!-- <if test="menuId != null and menuId =='nomenu'" >-->
|
||||||
|
<!-- and SAR_BUSS_STAND_MENU.MENU_ID = (select TS_RESOURCE.id from TS_RESOURCE WHERE parent_id is null and sor_divide ='BUSINESS_STAND' and valid_flag=0)-->
|
||||||
|
<!-- </if>-->
|
||||||
|
<!-- 当第一次进入页面未选择记录时-->
|
||||||
|
<!-- <if test="(menuId == null or menuId =='') and menuRoleList == null" >-->
|
||||||
|
<!-- and SAR_BUSS_STAND_MENU.MENU_ID in ( SELECT TS_RESOURCE.id FROM TS_RESOURCE START WITH id =(-->
|
||||||
|
<!-- SELECT TS_RESOURCE.id FROM TS_RESOURCE WHERE parent_id IS NULL AND sor_divide = 'BUSINESS_STAND' and valid_flag=0 ) CONNECT BY PRIOR id = parent_id )-->
|
||||||
|
<!-- </if>-->
|
||||||
|
<!-- 新修改需求,根据角色查询有权限的菜单数据-->
|
||||||
|
<if test="menuRoleList != null">
|
||||||
|
and SAR_BUSS_STAND_MENU.MENU_ID in
|
||||||
|
<foreach collection="menuRoleList" index="index" item="item" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="SarBussionInfoRole_Where_Clause_Review_Results_N">
|
<sql id="SarBussionInfoRole_Where_Clause_Review_Results_N">
|
||||||
@@ -144,6 +175,38 @@
|
|||||||
<if test="issueTimeStart == null and issueTimeStart == '' and issueTimeEnd != null and issueTimeEnd != ''">
|
<if test="issueTimeStart == null and issueTimeStart == '' and issueTimeEnd != null and issueTimeEnd != ''">
|
||||||
and DATE_FORMAT(ISSUE_TIME,'%Y-%m-%d') <= DATE_FORMAT(#{issueTimeEnd}, '%Y-%m-%d')
|
and DATE_FORMAT(ISSUE_TIME,'%Y-%m-%d') <= DATE_FORMAT(#{issueTimeEnd}, '%Y-%m-%d')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="QCDW != null and QCDW != '' " >
|
||||||
|
and QCDW like concat(concat('%',#{QCDW}),'%')
|
||||||
|
</if>
|
||||||
|
|
||||||
|
|
||||||
|
<if test="menuId != null and menuId =='nomenu' and menuAllChildrenIdList != null and menuAllChildrenIdList.size()>0 and sarMsType != null and sarMsType == 'filterSarMsMenu'" >
|
||||||
|
and SAR_BUSS_STAND_MENU.MENU_ID IS NULL
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<!-- 目录判断 -->
|
||||||
|
<if test="menuId != null and menuId !='nomenu' and menuAllChildrenIdList != null and menuAllChildrenIdList.size()>0 " >
|
||||||
|
and SAR_BUSS_STAND_MENU.MENU_ID in
|
||||||
|
<foreach collection="menuAllChildrenIdList" index="index" item="item" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<!-- 游离态标准查询 -->
|
||||||
|
<!-- <if test="menuId != null and menuId =='nomenu'" >-->
|
||||||
|
<!-- and SAR_BUSS_STAND_MENU.MENU_ID = (select TS_RESOURCE.id from TS_RESOURCE WHERE parent_id is null and sor_divide ='BUSINESS_STAND' and valid_flag=0)-->
|
||||||
|
<!-- </if>-->
|
||||||
|
<!-- 当第一次进入页面未选择记录时-->
|
||||||
|
<!-- <if test="(menuId == null or menuId =='') and menuRoleList == null" >-->
|
||||||
|
<!-- and SAR_BUSS_STAND_MENU.MENU_ID in ( SELECT TS_RESOURCE.id FROM TS_RESOURCE START WITH id =(-->
|
||||||
|
<!-- SELECT TS_RESOURCE.id FROM TS_RESOURCE WHERE parent_id IS NULL AND sor_divide = 'BUSINESS_STAND' and valid_flag=0 ) CONNECT BY PRIOR id = parent_id )-->
|
||||||
|
<!-- </if>-->
|
||||||
|
<!-- 新修改需求,根据角色查询有权限的菜单数据-->
|
||||||
|
<if test="menuRoleList != null">
|
||||||
|
and SAR_BUSS_STAND_MENU.MENU_ID in
|
||||||
|
<foreach collection="menuRoleList" index="index" item="item" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="SarBussionInfoRole_Where_Clause_Review_Results">
|
<sql id="SarBussionInfoRole_Where_Clause_Review_Results">
|
||||||
@@ -170,6 +233,38 @@
|
|||||||
<if test="issueTimeStart == null and issueTimeStart == '' and issueTimeEnd != null and issueTimeEnd != ''">
|
<if test="issueTimeStart == null and issueTimeStart == '' and issueTimeEnd != null and issueTimeEnd != ''">
|
||||||
and DATE_FORMAT(ISSUE_TIME,'%Y-%m-%d') <= DATE_FORMAT(#{issueTimeEnd}, '%Y-%m-%d')
|
and DATE_FORMAT(ISSUE_TIME,'%Y-%m-%d') <= DATE_FORMAT(#{issueTimeEnd}, '%Y-%m-%d')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="QCDW != null and QCDW != '' " >
|
||||||
|
and QCDW like concat(concat('%',#{QCDW}),'%')
|
||||||
|
</if>
|
||||||
|
|
||||||
|
|
||||||
|
<if test="menuId != null and menuId =='nomenu' and menuAllChildrenIdList != null and menuAllChildrenIdList.size()>0 and sarMsType != null and sarMsType == 'filterSarMsMenu'" >
|
||||||
|
and SAR_BUSS_STAND_MENU.MENU_ID IS NULL
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<!-- 目录判断 -->
|
||||||
|
<if test="menuId != null and menuId !='nomenu' and menuAllChildrenIdList != null and menuAllChildrenIdList.size()>0 " >
|
||||||
|
and SAR_BUSS_STAND_MENU.MENU_ID in
|
||||||
|
<foreach collection="menuAllChildrenIdList" index="index" item="item" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<!-- 游离态标准查询 -->
|
||||||
|
<!-- <if test="menuId != null and menuId =='nomenu'" >-->
|
||||||
|
<!-- and SAR_BUSS_STAND_MENU.MENU_ID = (select TS_RESOURCE.id from TS_RESOURCE WHERE parent_id is null and sor_divide ='BUSINESS_STAND' and valid_flag=0)-->
|
||||||
|
<!-- </if>-->
|
||||||
|
<!-- 当第一次进入页面未选择记录时-->
|
||||||
|
<!-- <if test="(menuId == null or menuId =='') and menuRoleList == null" >-->
|
||||||
|
<!-- and SAR_BUSS_STAND_MENU.MENU_ID in ( SELECT TS_RESOURCE.id FROM TS_RESOURCE START WITH id =(-->
|
||||||
|
<!-- SELECT TS_RESOURCE.id FROM TS_RESOURCE WHERE parent_id IS NULL AND sor_divide = 'BUSINESS_STAND' and valid_flag=0 ) CONNECT BY PRIOR id = parent_id )-->
|
||||||
|
<!-- </if>-->
|
||||||
|
<!-- 新修改需求,根据角色查询有权限的菜单数据-->
|
||||||
|
<if test="menuRoleList != null">
|
||||||
|
and SAR_BUSS_STAND_MENU.MENU_ID in
|
||||||
|
<foreach collection="menuRoleList" index="index" item="item" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
@@ -254,6 +349,7 @@
|
|||||||
sar_buss_stand_attr_info.QCRBUSS
|
sar_buss_stand_attr_info.QCRBUSS
|
||||||
from sar_bussioness_stand
|
from sar_bussioness_stand
|
||||||
LEFT JOIN sar_buss_stand_attr_info ON sar_buss_stand_attr_info.stand_id = sar_bussioness_stand.id
|
LEFT JOIN sar_buss_stand_attr_info ON sar_buss_stand_attr_info.stand_id = sar_bussioness_stand.id
|
||||||
|
left join SAR_BUSS_STAND_MENU ON SAR_BUSSIONESS_STAND.id = SAR_BUSS_STAND_MENU.buss_stand_id
|
||||||
<include refid="SarBussionInfoRole_Where_Clause_Review_Results_Buss"/>
|
<include refid="SarBussionInfoRole_Where_Clause_Review_Results_Buss"/>
|
||||||
) A
|
) A
|
||||||
ORDER BY
|
ORDER BY
|
||||||
@@ -276,10 +372,14 @@
|
|||||||
SELECT A.* FROM (
|
SELECT A.* FROM (
|
||||||
select <include refid="Base_Column_List" />
|
select <include refid="Base_Column_List" />
|
||||||
from sar_bussioness_stand_state
|
from sar_bussioness_stand_state
|
||||||
|
LEFT JOIN sar_buss_stand_attr_info ON sar_buss_stand_attr_info.stand_id = sar_bussioness_stand_state.stand_id
|
||||||
|
LEFT JOIN SAR_BUSS_STAND_MENU ON sar_bussioness_stand_state.stand_id = SAR_BUSS_STAND_MENU.buss_stand_id
|
||||||
<include refid="SarBussionInfoRole_Where_Clause_Review_Results_N"/>
|
<include refid="SarBussionInfoRole_Where_Clause_Review_Results_N"/>
|
||||||
union
|
union
|
||||||
select <include refid="Base_Column_List" />
|
select <include refid="Base_Column_List" />
|
||||||
from sar_bussioness_stand_state
|
from sar_bussioness_stand_state
|
||||||
|
LEFT JOIN sar_buss_stand_attr_info ON sar_buss_stand_attr_info.stand_id = sar_bussioness_stand_state.stand_id
|
||||||
|
LEFT JOIN SAR_BUSS_STAND_MENU ON sar_bussioness_stand_state.stand_id = SAR_BUSS_STAND_MENU.buss_stand_id
|
||||||
<include refid="SarBussionInfoRole_Where_Clause_Review_Results"/>
|
<include refid="SarBussionInfoRole_Where_Clause_Review_Results"/>
|
||||||
ORDER BY
|
ORDER BY
|
||||||
REVIEW_RESULTS ASC,
|
REVIEW_RESULTS ASC,
|
||||||
@@ -291,10 +391,20 @@
|
|||||||
|
|
||||||
<select id="getBussionessStandStateCount" resultType="java.lang.Integer" parameterType="com.adc.da.slrs.sarBussionessStandState.entity.SarBussionessStandStatePage">
|
<select id="getBussionessStandStateCount" resultType="java.lang.Integer" parameterType="com.adc.da.slrs.sarBussionessStandState.entity.SarBussionessStandStatePage">
|
||||||
select count(1) from (
|
select count(1) from (
|
||||||
select id from sar_bussioness_stand_state
|
SELECT
|
||||||
|
sar_bussioness_stand_state.id
|
||||||
|
FROM
|
||||||
|
sar_bussioness_stand_state
|
||||||
|
LEFT JOIN sar_buss_stand_attr_info ON sar_buss_stand_attr_info.stand_id = sar_bussioness_stand_state.stand_id
|
||||||
|
LEFT JOIN SAR_BUSS_STAND_MENU ON sar_bussioness_stand_state.stand_id = SAR_BUSS_STAND_MENU.buss_stand_id
|
||||||
<include refid="SarBussionInfoRole_Where_Clause_Review_Results_N"/>
|
<include refid="SarBussionInfoRole_Where_Clause_Review_Results_N"/>
|
||||||
union
|
union
|
||||||
select id from sar_bussioness_stand_state
|
SELECT
|
||||||
|
sar_bussioness_stand_state.id
|
||||||
|
FROM
|
||||||
|
sar_bussioness_stand_state
|
||||||
|
LEFT JOIN sar_buss_stand_attr_info ON sar_buss_stand_attr_info.stand_id = sar_bussioness_stand_state.stand_id
|
||||||
|
LEFT JOIN SAR_BUSS_STAND_MENU ON sar_bussioness_stand_state.stand_id = SAR_BUSS_STAND_MENU.buss_stand_id
|
||||||
<include refid="SarBussionInfoRole_Where_Clause_Review_Results"/>
|
<include refid="SarBussionInfoRole_Where_Clause_Review_Results"/>
|
||||||
) a
|
) a
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
+31
@@ -2039,5 +2039,36 @@
|
|||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectBy" resultType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo">
|
||||||
|
select
|
||||||
|
ssi2.id
|
||||||
|
from
|
||||||
|
SAR_STANDARDS_INFO ssi,
|
||||||
|
SAR_STANDARDS_INFO ssi2
|
||||||
|
where
|
||||||
|
<if test="standSort !=null and standNumber !=null and standYear !=null">
|
||||||
|
ssi.REPLACE_STAND_NUM = concat(ssi2.STAND_SORT,' ',ssi2.STAND_NUMBER,'-',ssi2.STAND_YEAR)
|
||||||
|
</if>
|
||||||
|
<if test="standSort !=null and standNumber !=null and standYear ==null">
|
||||||
|
ssi.REPLACE_STAND_NUM = concat(ssi2.STAND_SORT,' ',ssi2.STAND_NUMBER)
|
||||||
|
</if>
|
||||||
|
and ssi.STAND_NAME = #{id}
|
||||||
|
</select>
|
||||||
|
<select id="selectBy1" resultType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo">
|
||||||
|
select
|
||||||
|
ssi2.id
|
||||||
|
from
|
||||||
|
SAR_STANDARDS_INFO ssi,
|
||||||
|
SAR_STANDARDS_INFO ssi2
|
||||||
|
where
|
||||||
|
<if test="standSort !=null and standNumber !=null and standYear !=null">
|
||||||
|
ssi.REPLACE_STAND_NUM = concat(ssi2.STAND_SORT,ssi2.STAND_NUMBER,'-',ssi2.STAND_YEAR)
|
||||||
|
</if>
|
||||||
|
<if test="standSort !=null and standNumber !=null and standYear ==null">
|
||||||
|
ssi.REPLACE_STAND_NUM = concat(ssi2.STAND_SORT,ssi2.STAND_NUMBER)
|
||||||
|
</if>
|
||||||
|
and ssi.STAND_NAME = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user