合并分支 'dev_20230216' 到 'master'
Dev 20230216 查看合并请求 laws-foton-slrs/foton-slrs-system-rest!79
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
# 数据库配置
|
# 数据库配置
|
||||||
#=============================================
|
#=============================================
|
||||||
spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver
|
spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver
|
||||||
spring.datasource.url = jdbc:mysql://121.36.69.172:3307/foton_slrs_test?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&useSSL=false
|
spring.datasource.url = jdbc:mysql://121.36.69.172:3307/foton_slrs_test?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&useSSL=false&serverTimezone=Asia/Shanghai
|
||||||
spring.datasource.username = root
|
spring.datasource.username = root
|
||||||
spring.datasource.password = hzwlsoft.com
|
spring.datasource.password = hzwlsoft.com
|
||||||
|
|
||||||
|
|||||||
@@ -37,10 +37,10 @@ public class importExcelDTO {
|
|||||||
|
|
||||||
private String wgLeaderName;
|
private String wgLeaderName;
|
||||||
|
|
||||||
@Excel(name = "工作组组长" , orderNum = "6", width = 20.0)
|
@Excel(name = "技术委员会评审负责人" , orderNum = "6", width = 20.0)
|
||||||
private String wgLeader;
|
private String wgLeader;
|
||||||
|
|
||||||
@Excel(name = "计划初稿完成日期" , orderNum = "7", width = 20.0)
|
@Excel(name = "计划标准初稿完成日期" , orderNum = "7", width = 20.0)
|
||||||
private String draftTime;
|
private String draftTime;
|
||||||
|
|
||||||
@Excel(name = "计划标准发布时间", orderNum = "8", width = 18.0)
|
@Excel(name = "计划标准发布时间", orderNum = "8", width = 18.0)
|
||||||
|
|||||||
+1
-1
@@ -4648,7 +4648,7 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ResponseMessage repeal(String id, String type) {
|
public ResponseMessage repeal(String id, String type) {
|
||||||
if(type.equals("废除")){
|
if(type.equals("废止")){
|
||||||
SarBussionessStand sarBussionessStand = new SarBussionessStand();
|
SarBussionessStand sarBussionessStand = new SarBussionessStand();
|
||||||
sarBussionessStand.setId(id);
|
sarBussionessStand.setId(id);
|
||||||
sarBussionessStand.setTextStatusBuss("3lqnlgmgcn");
|
sarBussionessStand.setTextStatusBuss("3lqnlgmgcn");
|
||||||
|
|||||||
+44
@@ -139,6 +139,50 @@ public class SarStandardsInfoController extends BaseController<SarStandardsInfo>
|
|||||||
return Result.success(getPageInfo(page.getPager(), rows));
|
return Result.success(getPageInfo(page.getPager(), rows));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "|SarStandardsInfoEO|自定义分页查询")
|
||||||
|
@GetMapping("/getSarStandardsInfoSplitPage")
|
||||||
|
//@RequiresPermissions("lawss:sarStandardsInfo:getSarStandardsInfoPage")
|
||||||
|
public ResponseMessage<PageInfo<SarStandardsInfo>> getSarStandardsInfoSplitPage(SarStandardsInfoEOPage page,@RequestParam(defaultValue = "0") String mark) throws Exception {
|
||||||
|
if (null != page.getNowOrderBy()) {
|
||||||
|
nowOrderFunc(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (StringUtils.isNotBlank(page.getAdvanceSearchVOStr())) {
|
||||||
|
List<SarAdvanceSearchVO> searchList = JSONObject.parseArray(page.getAdvanceSearchVOStr(),SarAdvanceSearchVO.class);
|
||||||
|
//不改传参强行置换
|
||||||
|
// searchList.forEach(sarAdvanceSearchVO -> {
|
||||||
|
// if ("TXLB".equals(sarAdvanceSearchVO.getField())){
|
||||||
|
// sarAdvanceSearchVO.setField("STAND_SYSTEM");
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
String advanceStr = SarAdvanceSearchUtil.createStandSql(searchList,"sar_stand_attr_info");
|
||||||
|
if (StringUtils.isNotBlank(advanceStr)) {
|
||||||
|
page.setAdvanceSearchStr(advanceStr);
|
||||||
|
} else {
|
||||||
|
page.setAdvanceSearchStr(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(page.getUserId() == null || page.getUserId().equals("")){
|
||||||
|
page.setUserId(LoginUserUtil.getUserId());
|
||||||
|
}
|
||||||
|
List<SarStandardsInfo> rows = sarStandardsInfoEOService.getSarStandardsInfoSplitPage(page);
|
||||||
|
|
||||||
|
// 去掉日期时分秒
|
||||||
|
rows.forEach(item->{
|
||||||
|
|
||||||
|
Optional.ofNullable(item.getSSRQ())
|
||||||
|
.ifPresent(SSRQ -> item.setSSRQ(item.getSSRQ().replaceAll("\\s[0-6][0-9]\\:[0-6][0-9]\\:[0-6][0-9]", "")));
|
||||||
|
Optional.ofNullable(item.getXCXSSRQ())
|
||||||
|
.ifPresent(SSRQ ->item.setXCXSSRQ(item.getXCXSSRQ().replaceAll("\\s[0-6][0-9]\\:[0-6][0-9]\\:[0-6][0-9]", "")));
|
||||||
|
Optional.ofNullable(item.getZCCSSRQ())
|
||||||
|
.ifPresent(SSRQ ->item.setZCCSSRQ(item.getZCCSSRQ().replaceAll("\\s[0-6][0-9]\\:[0-6][0-9]\\:[0-6][0-9]", "")));
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
return Result.success(getPageInfo(page.getPager(), rows));
|
||||||
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "|SarStandardsInfoEO|自定义分页查询")
|
@ApiOperation(value = "|SarStandardsInfoEO|自定义分页查询")
|
||||||
@GetMapping("/getSarStandardsInfoPageByWk1")
|
@GetMapping("/getSarStandardsInfoPageByWk1")
|
||||||
//@RequiresPermissions("lawss:sarStandardsInfo:getSarStandardsInfoPage")
|
//@RequiresPermissions("lawss:sarStandardsInfo:getSarStandardsInfoPage")
|
||||||
|
|||||||
+2
@@ -78,4 +78,6 @@ public interface ISarStandardsInfoService extends IService<SarStandardsInfo> {
|
|||||||
List<SarStandardsInfo> listQuery2(SarStandardsInfoEOPage page);
|
List<SarStandardsInfo> listQuery2(SarStandardsInfoEOPage page);
|
||||||
|
|
||||||
ResponseMessage fileNameTranslation();
|
ResponseMessage fileNameTranslation();
|
||||||
|
|
||||||
|
List<SarStandardsInfo> getSarStandardsInfoSplitPage(SarStandardsInfoEOPage page);
|
||||||
}
|
}
|
||||||
|
|||||||
+60
-7
@@ -87,6 +87,7 @@ import com.alibaba.fastjson.JSON;
|
|||||||
import com.alibaba.fastjson.serializer.SerializerFeature;
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
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 lombok.SneakyThrows;
|
||||||
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.ObjectUtils;
|
||||||
@@ -583,13 +584,6 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
Integer rowCount = dao.getSarStandardsInfoCount(page);
|
Integer rowCount = dao.getSarStandardsInfoCount(page);
|
||||||
page.getPager().setRowCount(rowCount);
|
page.getPager().setRowCount(rowCount);
|
||||||
List<SarStandardsInfo> sarlist = dao.getSarStandardsInfoPage(page, "0");
|
List<SarStandardsInfo> sarlist = dao.getSarStandardsInfoPage(page, "0");
|
||||||
if(sarlist.isEmpty()){
|
|
||||||
page.setStandName(page.getStandNumber());
|
|
||||||
page.setStandNumber(null);
|
|
||||||
rowCount = dao.getSarStandardsInfoCount(page);
|
|
||||||
page.getPager().setRowCount(rowCount);
|
|
||||||
sarlist = dao.getSarStandardsInfoPage(page, "0");
|
|
||||||
}
|
|
||||||
attrInfoCollect(sarlist);
|
attrInfoCollect(sarlist);
|
||||||
return sarlist;
|
return sarlist;
|
||||||
}
|
}
|
||||||
@@ -3788,5 +3782,64 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
return Result.success(objects);
|
return Result.success(objects);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SneakyThrows
|
||||||
|
@Override
|
||||||
|
public List<SarStandardsInfo> getSarStandardsInfoSplitPage(SarStandardsInfoEOPage page){
|
||||||
|
//查询当前登录人角色拥有权限的菜单
|
||||||
|
if (page.getMenuId() != null && page.getUserId() != null && StringUtils.isNotBlank(page.getUserId())) {
|
||||||
|
String treeType = page.getTreeType();
|
||||||
|
QueryWrapper 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);
|
||||||
|
}
|
||||||
|
} else if (page.getMenuId().equals("nomenu") && StringUtils.isNotBlank(page.getSarMsType()) && "filterSarMsMenu".equals(page.getSarMsType())) {
|
||||||
|
// 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.getSarMsMenuId());
|
||||||
|
if (ids != null && !ids.isEmpty()) {
|
||||||
|
page.setMenuAllChildrenIdList(ids);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Integer rowCount = dao.getSarStandardsInfoCount(page);
|
||||||
|
page.getPager().setRowCount(rowCount);
|
||||||
|
List<SarStandardsInfo> sarlist = dao.getSarStandardsInfoPage(page, "0");
|
||||||
|
if(sarlist.isEmpty()){
|
||||||
|
page.setStandName(page.getStandNumber());
|
||||||
|
page.setStandNumber(null);
|
||||||
|
rowCount = dao.getSarStandardsInfoCount(page);
|
||||||
|
page.getPager().setRowCount(rowCount);
|
||||||
|
sarlist = dao.getSarStandardsInfoPage(page, "0");
|
||||||
|
}
|
||||||
|
attrInfoCollect(sarlist);
|
||||||
|
return sarlist;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -651,6 +651,6 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectByDicId" resultType="java.lang.String">
|
<select id="selectByDicId" resultType="java.lang.String">
|
||||||
select DIC_TYPE_NAME from ts_dictype where dic_id = #{dicId}
|
select DIC_TYPE_NAME from ts_dictype where dic_id = #{dicId} order by DIC_TYPE_NAME asc
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user