Merge remote-tracking branch 'origin/develop_master' into develop_master
This commit is contained in:
+3
@@ -242,6 +242,9 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
|||||||
sar.setProjectLevel(sarDto.getProjectLevel());
|
sar.setProjectLevel(sarDto.getProjectLevel());
|
||||||
sar.setProjectManager(sarDto.getProjectManager());
|
sar.setProjectManager(sarDto.getProjectManager());
|
||||||
sar.setProductLine(sarDto.getProductLine());
|
sar.setProductLine(sarDto.getProductLine());
|
||||||
|
sar.setManagementHostName(sarDto.getManagementHostName());
|
||||||
|
sar.setCategoryName(sarDto.getCategoryName());
|
||||||
|
sar.setDevelopmentHostName(sarDto.getDevelopmentHostName());
|
||||||
SimpleDateFormat formater = new SimpleDateFormat();
|
SimpleDateFormat formater = new SimpleDateFormat();
|
||||||
formater.applyPattern("yyyy-MM-dd");
|
formater.applyPattern("yyyy-MM-dd");
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -72,5 +72,8 @@ public class SysLog extends BaseEntity {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String dept;
|
private String dept;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String accountName;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+141
@@ -0,0 +1,141 @@
|
|||||||
|
package com.adc.da.slrs.wgCommittee.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.adc.da.http.ResponseMessage;
|
||||||
|
import com.adc.da.http.Result;
|
||||||
|
import com.adc.da.slrs.wgCommittee.entity.WgCommitteeDTO;
|
||||||
|
import com.adc.da.slrs.wgCommittee.service.IWgCommitteeService;
|
||||||
|
import com.adc.da.slrs.wgCommitteeUser.service.IWgCommitteeUserService;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import com.adc.da.slrs.wgCommittee.entity.WgCommittee;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import com.adc.da.base.web.BaseController;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 标准委员会 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yzh
|
||||||
|
* @since 2022-03-10
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@Api(description = "|WgCommittee|")
|
||||||
|
@RequestMapping("/${restPath}/wgCommittee/wg-committee")
|
||||||
|
public class WgCommitteeController extends BaseController<WgCommittee> {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
IWgCommitteeService iWgCommitteeService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
IWgCommitteeUserService iWgCommitteeUserService;
|
||||||
|
|
||||||
|
@ApiModelProperty("新增工作组")
|
||||||
|
@PostMapping("/insert")
|
||||||
|
public ResponseMessage addWorkCommitter(WgCommittee wgCommittee) {
|
||||||
|
|
||||||
|
if (isDistinct(wgCommittee.getCommitteeName(),null)){
|
||||||
|
if (iWgCommitteeService.add(wgCommittee)){
|
||||||
|
return Result.success("200","新增成功");
|
||||||
|
}else {
|
||||||
|
return Result.error("201","新增失败");
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
return Result.error("202","组名已存在");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty("批量删除工作组")
|
||||||
|
@DeleteMapping("/deleteBatch")
|
||||||
|
public ResponseMessage deleteWorkGroup(String id){
|
||||||
|
List<String> ids=new ArrayList<>();
|
||||||
|
if (id.contains(",")){
|
||||||
|
ids.addAll(new ArrayList<>(Arrays.asList(id.split(","))));
|
||||||
|
}else {
|
||||||
|
ids.add(id);
|
||||||
|
}
|
||||||
|
QueryWrapper<WgCommittee> wrapper=new QueryWrapper<>();
|
||||||
|
wrapper.select("committeer");
|
||||||
|
wrapper.in("id",ids);
|
||||||
|
wrapper.isNotNull("committeer");
|
||||||
|
List<WgCommittee> removes = iWgCommitteeService.list(wrapper);
|
||||||
|
if (!removes.isEmpty()) {
|
||||||
|
List<String> reids = removes.stream().distinct().map(WgCommittee::getCommitteer).collect(Collectors.toList());
|
||||||
|
iWgCommitteeUserService.removeByIds(reids);
|
||||||
|
}
|
||||||
|
if (iWgCommitteeService.removeByIds(ids)) {
|
||||||
|
return Result.success();
|
||||||
|
}else {
|
||||||
|
return Result.error("");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiModelProperty("根据组长民或者组名查询工作组,参数为空时查询全部")
|
||||||
|
@GetMapping("/page")
|
||||||
|
public ResponseMessage<IPage<WgCommitteeDTO>> getWgCommitteeLists(WgCommittee wgCommittee){
|
||||||
|
IPage<WgCommitteeDTO> workGroup = iWgCommitteeService.getWgCommittee(wgCommittee);
|
||||||
|
return Result.success(workGroup);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiModelProperty("根据组长民或者组名查询工作组,参数为空时查询全部")
|
||||||
|
@GetMapping("/pageWk")
|
||||||
|
public ResponseMessage<IPage<WgCommitteeDTO>> getWgCommitteeList(WgCommittee wgCommittee){
|
||||||
|
IPage<WgCommitteeDTO> workGroup = iWgCommitteeService.getWgCommittee(wgCommittee);
|
||||||
|
return Result.success(workGroup);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty("修改标准委员会")
|
||||||
|
@PutMapping("/update")
|
||||||
|
public ResponseMessage updateWgCommittee(WgCommittee wgCommittee){
|
||||||
|
|
||||||
|
ResponseMessage<Object> result = Result.success();
|
||||||
|
|
||||||
|
if (isDistinct(wgCommittee.getCommitteeName(),wgCommittee.getId())){
|
||||||
|
if (iWgCommitteeService.update(wgCommittee)){
|
||||||
|
result=Result.success("修改成功");
|
||||||
|
}else {
|
||||||
|
result=Result.error("201", "修改失败");
|
||||||
|
}
|
||||||
|
|
||||||
|
}else {
|
||||||
|
result=Result.error("202", "组名已存在");
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 判断提交的工作组名称是否重复
|
||||||
|
* @param groupName 条件
|
||||||
|
* @param id 排除id
|
||||||
|
* @returntrue 没有重复 false 有重复
|
||||||
|
*/
|
||||||
|
private boolean isDistinct(String groupName,String id){
|
||||||
|
|
||||||
|
QueryWrapper<WgCommittee> ew = new QueryWrapper<>();
|
||||||
|
|
||||||
|
ew.eq("committee_name",groupName);
|
||||||
|
|
||||||
|
if (id!=null){
|
||||||
|
ew.ne("id",id);
|
||||||
|
}
|
||||||
|
|
||||||
|
List<WgCommittee> list = iWgCommitteeService.list(ew);
|
||||||
|
return list.isEmpty();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
package com.adc.da.slrs.wgCommittee.dao;
|
||||||
|
|
||||||
|
|
||||||
|
import com.adc.da.slrs.wgCommittee.entity.WgCommittee;
|
||||||
|
import com.adc.da.slrs.wgCommittee.entity.WgCommitteeDTO;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 标准委员会 Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yzh
|
||||||
|
* @since 2022-03-10
|
||||||
|
*/
|
||||||
|
public interface WgCommitteeDao extends BaseMapper<WgCommittee> {
|
||||||
|
|
||||||
|
List<WgCommitteeDTO> getData(WgCommittee wgCommittee);
|
||||||
|
Integer getDataCount(WgCommittee wgCommittee);
|
||||||
|
|
||||||
|
List<WgCommitteeDTO> getDataWk(WgCommittee wgCommittee);
|
||||||
|
Integer getDataCountWk(WgCommittee wgCommittee);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
package com.adc.da.slrs.wgCommittee.entity;
|
||||||
|
|
||||||
|
import com.adc.da.base.entity.BaseEntity;
|
||||||
|
import com.adc.da.base.page.BasePage;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 标准委员会
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yzh
|
||||||
|
* @since 2022-03-10
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@ApiModel(value="WgCommittee对象", description="标准委员会")
|
||||||
|
public class WgCommittee extends BasePage {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "委员会名称")
|
||||||
|
private String committeeName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "委员会主任")
|
||||||
|
private String committeeDirector;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "委员会秘书长")
|
||||||
|
private String committeeSecretary;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "委员关联表")
|
||||||
|
private String committeer;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "委员")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String committeeIds;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
package com.adc.da.slrs.wgCommittee.entity;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 标准委员会
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yzh
|
||||||
|
* @since 2022-03-10
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class WgCommitteeDTO {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "委员会名称")
|
||||||
|
private String committeeName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "委员会主任")
|
||||||
|
private String committeeDirector;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "委员会主任")
|
||||||
|
private String committeeDirectorName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "委员会秘书长")
|
||||||
|
private String committeeSecretary;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "委员会秘书长")
|
||||||
|
private String committeeSecretaryName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "委员关联表")
|
||||||
|
private String committeer;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "委员")
|
||||||
|
private String committor;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "委员")
|
||||||
|
private String committorId;
|
||||||
|
|
||||||
|
// @ApiModelProperty(value = "委员")
|
||||||
|
// private List<String> committeeIds;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
+26
@@ -0,0 +1,26 @@
|
|||||||
|
package com.adc.da.slrs.wgCommittee.service;
|
||||||
|
|
||||||
|
import com.adc.da.slrs.wgCommittee.entity.WgCommittee;
|
||||||
|
import com.adc.da.slrs.wgCommittee.entity.WgCommitteeDTO;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 标准委员会 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yzh
|
||||||
|
* @since 2022-03-10
|
||||||
|
*/
|
||||||
|
public interface IWgCommitteeService extends IService<WgCommittee> {
|
||||||
|
boolean add (WgCommittee wgCommittee);
|
||||||
|
boolean update (WgCommittee wgCommittee);
|
||||||
|
|
||||||
|
IPage<WgCommitteeDTO> getWgCommittee(WgCommittee wgCommittee);
|
||||||
|
|
||||||
|
IPage<WgCommitteeDTO> getWgCommitteeWk(WgCommittee wgCommittee);
|
||||||
|
|
||||||
|
}
|
||||||
+93
@@ -0,0 +1,93 @@
|
|||||||
|
package com.adc.da.slrs.wgCommittee.service.impl;
|
||||||
|
|
||||||
|
import com.adc.da.slrs.wgCommittee.entity.WgCommittee;
|
||||||
|
import com.adc.da.slrs.wgCommittee.dao.WgCommitteeDao;
|
||||||
|
import com.adc.da.slrs.wgCommittee.entity.WgCommitteeDTO;
|
||||||
|
import com.adc.da.slrs.wgCommittee.service.IWgCommitteeService;
|
||||||
|
import com.adc.da.slrs.wgCommitteeUser.entity.WgCommitteeUser;
|
||||||
|
import com.adc.da.slrs.wgCommitteeUser.service.IWgCommitteeUserService;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 标准委员会 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yzh
|
||||||
|
* @since 2022-03-10
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class WgCommitteeServiceImpl extends ServiceImpl<WgCommitteeDao, WgCommittee> implements IWgCommitteeService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
IWgCommitteeUserService iWgCommitteeUserService;
|
||||||
|
@Autowired
|
||||||
|
IWgCommitteeService iWgCommitteeService;
|
||||||
|
@Autowired
|
||||||
|
WgCommitteeDao wgCommitteeDao;
|
||||||
|
|
||||||
|
@Transactional
|
||||||
|
@Override
|
||||||
|
public boolean add(WgCommittee wgCommittee) {
|
||||||
|
wgCommittee.setId(String.valueOf(UUID.randomUUID()));
|
||||||
|
String id=String.valueOf(UUID.randomUUID());
|
||||||
|
wgCommittee.setCommitteer(id);
|
||||||
|
List<WgCommitteeUser> list=new ArrayList<>();
|
||||||
|
if (null!=wgCommittee.getCommitteeIds() && !wgCommittee.getCommitteeIds().isEmpty()) {
|
||||||
|
List<String> res=new ArrayList<>(Arrays.asList(wgCommittee.getCommitteeIds().split(",")));
|
||||||
|
res.stream().forEach(s -> list.add(new WgCommitteeUser().setCommitterId(s).setId(wgCommittee.getCommitteer())));
|
||||||
|
iWgCommitteeUserService.saveOrUpdateBatch(list);
|
||||||
|
}
|
||||||
|
if (iWgCommitteeService.saveOrUpdate(wgCommittee)) {
|
||||||
|
return true;
|
||||||
|
}else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Transactional
|
||||||
|
@Override
|
||||||
|
public boolean update(WgCommittee wgCommittee) {
|
||||||
|
iWgCommitteeService.updateById(wgCommittee);
|
||||||
|
List<WgCommitteeUser> save=new ArrayList<>();
|
||||||
|
if (null!=wgCommittee.getCommitteeIds() && !wgCommittee.getCommitteeIds().isEmpty()){
|
||||||
|
List<String> res=new ArrayList<>(Arrays.asList(wgCommittee.getCommitteeIds().split(",")));
|
||||||
|
res.forEach(s -> save.add(new WgCommitteeUser().setId(wgCommittee.getCommitteer()).setCommitterId(s)));
|
||||||
|
}
|
||||||
|
if (iWgCommitteeUserService.updateBatchById(save)) {
|
||||||
|
return true;
|
||||||
|
}else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IPage<WgCommitteeDTO> getWgCommittee(WgCommittee wgCommittee) {
|
||||||
|
Page page=new Page();
|
||||||
|
page.setRecords(wgCommitteeDao.getData(wgCommittee));
|
||||||
|
page.setCurrent(wgCommittee.getPage());
|
||||||
|
page.setSize(wgCommittee.getPageSize());
|
||||||
|
page.setTotal(wgCommitteeDao.getDataCount(wgCommittee));
|
||||||
|
return page;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IPage<WgCommitteeDTO> getWgCommitteeWk(WgCommittee wgCommittee) {
|
||||||
|
Page page=new Page();
|
||||||
|
page.setRecords(wgCommitteeDao.getDataWk(wgCommittee));
|
||||||
|
page.setCurrent(wgCommittee.getPage());
|
||||||
|
page.setSize(wgCommittee.getPageSize());
|
||||||
|
page.setTotal(wgCommitteeDao.getDataCountWk(wgCommittee));
|
||||||
|
return page;
|
||||||
|
}
|
||||||
|
}
|
||||||
+23
@@ -0,0 +1,23 @@
|
|||||||
|
package com.adc.da.slrs.wgCommitteeUser.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import com.adc.da.slrs.wgCommitteeUser.entity.WgCommitteeUser;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.adc.da.base.web.BaseController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 标准委员会委员 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yzh
|
||||||
|
* @since 2022-03-10
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@Api(description = "|WgCommitteeUser|")
|
||||||
|
@RequestMapping("/${restPath}/wgCommitteeUser/wg-committee-user")
|
||||||
|
public class WgCommitteeUserController extends BaseController<WgCommitteeUser> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package com.adc.da.slrs.wgCommitteeUser.dao;
|
||||||
|
|
||||||
|
import com.adc.da.slrs.wgCommitteeUser.entity.WgCommitteeUser;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 标准委员会委员 Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yzh
|
||||||
|
* @since 2022-03-10
|
||||||
|
*/
|
||||||
|
public interface WgCommitteeUserDao extends BaseMapper<WgCommitteeUser> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
package com.adc.da.slrs.wgCommitteeUser.entity;
|
||||||
|
|
||||||
|
import com.adc.da.base.entity.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 标准委员会委员
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yzh
|
||||||
|
* @since 2022-03-10
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@ApiModel(value="WgCommitteeUser对象", description="标准委员会委员")
|
||||||
|
public class WgCommitteeUser extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "委员id")
|
||||||
|
private String committerId;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
package com.adc.da.slrs.wgCommitteeUser.service;
|
||||||
|
|
||||||
|
import com.adc.da.slrs.wgCommitteeUser.entity.WgCommitteeUser;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 标准委员会委员 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yzh
|
||||||
|
* @since 2022-03-10
|
||||||
|
*/
|
||||||
|
public interface IWgCommitteeUserService extends IService<WgCommitteeUser> {
|
||||||
|
|
||||||
|
}
|
||||||
+20
@@ -0,0 +1,20 @@
|
|||||||
|
package com.adc.da.slrs.wgCommitteeUser.service.impl;
|
||||||
|
|
||||||
|
import com.adc.da.slrs.wgCommitteeUser.entity.WgCommitteeUser;
|
||||||
|
import com.adc.da.slrs.wgCommitteeUser.dao.WgCommitteeUserDao;
|
||||||
|
import com.adc.da.slrs.wgCommitteeUser.service.IWgCommitteeUserService;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 标准委员会委员 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yzh
|
||||||
|
* @since 2022-03-10
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class WgCommitteeUserServiceImpl extends ServiceImpl<WgCommitteeUserDao, WgCommitteeUser> implements IWgCommitteeUserService {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -44,6 +44,10 @@ public class StandExportUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
String header = FieldConvertUtil.exportBaseFieldNames + "," + attrBud.toString();
|
String header = FieldConvertUtil.exportBaseFieldNames + "," + attrBud.toString();
|
||||||
|
//国内导出去掉体系类别
|
||||||
|
if (SarTypeEnum.INLAND_STAND.getValue().equals(standType)) {
|
||||||
|
header = header.replace(",体系类别","");
|
||||||
|
}
|
||||||
if (SarTypeEnum.FOREIGN_STAND.getValue().equals(standType)) {
|
if (SarTypeEnum.FOREIGN_STAND.getValue().equals(standType)) {
|
||||||
header = FieldConvertUtil.exportBaseFieldNamesForeign + "," + attrBud.toString();
|
header = FieldConvertUtil.exportBaseFieldNamesForeign + "," + attrBud.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
+19
@@ -116,6 +116,15 @@
|
|||||||
<if test="qu.projectEndDate != null">
|
<if test="qu.projectEndDate != null">
|
||||||
AND library.project_end_date <= #{qu.projectEndDate}
|
AND library.project_end_date <= #{qu.projectEndDate}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="qu.managementHostName != null">
|
||||||
|
AND library.management_host_name LIKE concat(concat('%',#{qu.managementHostName}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="qu.developmentHostName != null">
|
||||||
|
AND library.development_host_name LIKE concat(concat('%',#{qu.developmentHostName}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="qu.categoryName != null">
|
||||||
|
AND library.category_name LIKE concat(concat('%',#{qu.categoryName}),'%')
|
||||||
|
</if>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
@@ -186,6 +195,16 @@
|
|||||||
<if test="qu.projectEndDate != null">
|
<if test="qu.projectEndDate != null">
|
||||||
AND library.project_end_date <= #{qu.projectEndDate}
|
AND library.project_end_date <= #{qu.projectEndDate}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="qu.managementHostName != null">
|
||||||
|
AND library.management_host_name LIKE concat(concat('%',#{qu.managementHostName}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="qu.developmentHostName != null">
|
||||||
|
AND library.development_host_name LIKE concat(concat('%',#{qu.developmentHostName}),'%')
|
||||||
|
</if>
|
||||||
|
<if test="qu.categoryName != null">
|
||||||
|
AND library.category_name LIKE concat(concat('%',#{qu.categoryName}),'%')
|
||||||
|
</if>
|
||||||
|
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
limit ${(page-1)*size},${size}
|
limit ${(page-1)*size},${size}
|
||||||
|
|||||||
+36
-7
@@ -310,28 +310,57 @@
|
|||||||
) t3 WHERE ischild != '0'
|
) t3 WHERE ischild != '0'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<!--<select id="getChildrenCountByParentId" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">-->
|
||||||
|
<!--SELECT count(*) FROM-->
|
||||||
|
<!--SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id-->
|
||||||
|
<!--</select>-->
|
||||||
|
|
||||||
<select id="getChildrenCountByParentId" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
<select id="getChildrenCountByParentId" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||||
SELECT count(*) FROM
|
SELECT count(*) FROM
|
||||||
SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id
|
SAR_FILE_SPLIT_MENU ,(SELECT getSplitChildList(#{id}) childListStr) t WHERE FIND_IN_SET(ID,childListStr)
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<!--<update id="updateChildrenDisplaySeqByIDAdd" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >-->
|
||||||
|
<!--update SAR_FILE_SPLIT_MENU-->
|
||||||
|
<!--set display_seq = display_seq + #{childrenCount},-->
|
||||||
|
<!--modify_time = #{modifyTime},-->
|
||||||
|
<!--modify_user = #{modifyUser}-->
|
||||||
|
<!--where id in ( SELECT id FROM-->
|
||||||
|
<!--SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id)-->
|
||||||
|
<!--</update>-->
|
||||||
|
|
||||||
<update id="updateChildrenDisplaySeqByIDAdd" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
<update id="updateChildrenDisplaySeqByIDAdd" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
||||||
update SAR_FILE_SPLIT_MENU
|
update SAR_FILE_SPLIT_MENU
|
||||||
set display_seq = display_seq + #{childrenCount},
|
set display_seq = display_seq + #{childrenCount},
|
||||||
modify_time = #{modifyTime},
|
modify_time = #{modifyTime},
|
||||||
modify_user = #{modifyUser}
|
modify_user = #{modifyUser}
|
||||||
where id in ( SELECT id FROM
|
where id in (SELECT id
|
||||||
SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id)
|
FROM SAR_FILE_SPLIT_MENU,
|
||||||
</update>
|
(SELECT getSplitChildList(#{id}) childListStr) t
|
||||||
|
WHERE FIND_IN_SET(ID, childListStr)
|
||||||
|
)
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<!--<update id="updateChildrenDisplaySeqByIDCut" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >-->
|
||||||
|
<!--update SAR_FILE_SPLIT_MENU-->
|
||||||
|
<!--set display_seq = display_seq - #{childrenCount},-->
|
||||||
|
<!--modify_time = #{modifyTime},-->
|
||||||
|
<!--modify_user = #{modifyUser}-->
|
||||||
|
<!--where id in ( SELECT id FROM-->
|
||||||
|
<!--SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id)-->
|
||||||
|
<!--</update>-->
|
||||||
|
|
||||||
<update id="updateChildrenDisplaySeqByIDCut" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
<update id="updateChildrenDisplaySeqByIDCut" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
||||||
update SAR_FILE_SPLIT_MENU
|
update SAR_FILE_SPLIT_MENU
|
||||||
set display_seq = display_seq - #{childrenCount},
|
set display_seq = display_seq - #{childrenCount},
|
||||||
modify_time = #{modifyTime},
|
modify_time = #{modifyTime},
|
||||||
modify_user = #{modifyUser}
|
modify_user = #{modifyUser}
|
||||||
where id in ( SELECT id FROM
|
where id in (SELECT id
|
||||||
SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id)
|
FROM SAR_FILE_SPLIT_MENU,
|
||||||
</update>
|
(SELECT getSplitChildList(#{id}) childListStr) t
|
||||||
|
WHERE FIND_IN_SET(ID, childListStr)
|
||||||
|
)
|
||||||
|
</update>
|
||||||
|
|
||||||
<!--oracle 写法-->
|
<!--oracle 写法-->
|
||||||
<!--<select id="queryAllChildrenByid" resultMap="BaseResultMap" parameterType="com.adc.da.lawss.entity.SarFileSplitMenuEO">-->
|
<!--<select id="queryAllChildrenByid" resultMap="BaseResultMap" parameterType="com.adc.da.lawss.entity.SarFileSplitMenuEO">-->
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<mapper namespace="com.adc.da.slrs.sysLog.dao.SysLogDao">
|
<mapper namespace="com.adc.da.slrs.sysLog.dao.SysLogDao">
|
||||||
|
|
||||||
<select id="queryAllLog" parameterType="com.adc.da.slrs.sysLog.vo.SysLogReqDTO" resultType="com.adc.da.slrs.sysLog.entity.SysLog">
|
<select id="queryAllLog" parameterType="com.adc.da.slrs.sysLog.vo.SysLogReqDTO" resultType="com.adc.da.slrs.sysLog.entity.SysLog">
|
||||||
select ts_user.account,ts_institution.name dept,sys_log.oper_time,sys_log.oper,sys_log.special from sys_log
|
select ts_user.account,ts_user.UNAME as accountName,ts_institution.name dept,sys_log.oper_time,sys_log.oper,sys_log.special from sys_log
|
||||||
left join ts_user on sys_log.user_id = ts_user.usid
|
left join ts_user on sys_log.user_id = ts_user.usid
|
||||||
left join ts_institution on ts_user.institution_id = ts_institution.id
|
left join ts_institution on ts_user.institution_id = ts_institution.id
|
||||||
WHERE 1=1
|
WHERE 1=1
|
||||||
|
|||||||
@@ -0,0 +1,69 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.adc.da.slrs.wgCommittee.dao.WgCommitteeDao">
|
||||||
|
|
||||||
|
<select id="getData" resultType="com.adc.da.slrs.wgCommittee.entity.WgCommitteeDTO">
|
||||||
|
SELECT wg_committee.id, wg_committee.committee_name as committeeName ,wg_committee.committee_director as committeeDirector
|
||||||
|
,t1.UNAME as committeeDirectorName,wg_committee.committee_secretary as committeeSecretary,t2.UNAME as committeeSecretaryName,
|
||||||
|
wg_committee.committeer ,
|
||||||
|
(
|
||||||
|
SELECT GROUP_CONCAT(t3.UNAME) FROM wg_committee_user
|
||||||
|
LEFT JOIN ts_user t3 on t3.USID = wg_committee_user.committer_id
|
||||||
|
WHERE wg_committee_user.id = wg_committee.committeer
|
||||||
|
) as committor,
|
||||||
|
(
|
||||||
|
SELECT GROUP_CONCAT(t3.USID) FROM wg_committee_user
|
||||||
|
LEFT JOIN ts_user t3 on t3.USID = wg_committee_user.committer_id
|
||||||
|
WHERE wg_committee_user.id = wg_committee.committeer
|
||||||
|
) as committorId
|
||||||
|
from wg_committee
|
||||||
|
LEFT JOIN ts_user t1 on t1.USID = wg_committee.committee_director
|
||||||
|
LEFT JOIN ts_user t2 on t2.USID = wg_committee.committee_secretary
|
||||||
|
where 1=1
|
||||||
|
<if test="committeeName != null and ''!=committeeName">
|
||||||
|
and wg_committee.committee_name like concat(concat('%',#{committeeName}),'%')
|
||||||
|
</if>
|
||||||
|
limit ${(page-1)*pageSize},${pageSize}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="getDataCount" resultType="java.lang.Integer">
|
||||||
|
SELECT count(wg_committee.id)
|
||||||
|
from wg_committee
|
||||||
|
LEFT JOIN ts_user t1 on t1.USID = wg_committee.committee_director
|
||||||
|
LEFT JOIN ts_user t2 on t2.USID = wg_committee.committee_secretary
|
||||||
|
where 1=1
|
||||||
|
<if test="committeeName != null and ''!=committeeName">
|
||||||
|
and wg_committee.committee_name like concat(concat('%',#{committeeName}),'%')
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="getDataWk" resultType="com.adc.da.slrs.wgCommittee.entity.WgCommitteeDTO">
|
||||||
|
SELECT wg_committee.id, wg_committee.committee_name as committeeName ,wg_committee.committee_director as committeeDirector
|
||||||
|
,t1.UNAME as committeeDirectorName,wg_committee.committee_secretary as committeeSecretary,t2.UNAME as committeeSecretaryName,
|
||||||
|
t3.UNAME as committor,t3.USID as committorId,wg_committee.committeer ,
|
||||||
|
from wg_committee
|
||||||
|
LEFT JOIN ts_user t1 on t1.USID = wg_committee.committee_director
|
||||||
|
LEFT JOIN ts_user t2 on t2.USID = wg_committee.committee_secretary
|
||||||
|
LEFT JOIN wg_committee_user on wg_committee_user.id = wg_committee.committeer
|
||||||
|
LEFT JOIN ts_user t3 on t3.USID = wg_committee_user.committer_id
|
||||||
|
where 1=1
|
||||||
|
<if test="committeeName != null and ''!=committeeName">
|
||||||
|
and wg_committee.committee_name like concat(concat('%',#{committeeName}),'%')
|
||||||
|
</if>
|
||||||
|
limit ${(page-1)*pageSize},${pageSize}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="getDataCountWk" resultType="java.lang.Integer">
|
||||||
|
SELECT count(wg_committee.id)
|
||||||
|
from wg_committee
|
||||||
|
LEFT JOIN ts_user t1 on t1.USID = wg_committee.committee_director
|
||||||
|
LEFT JOIN ts_user t2 on t2.USID = wg_committee.committee_secretary
|
||||||
|
LEFT JOIN wg_committee_user on wg_committee_user.id = wg_committee.committeer
|
||||||
|
LEFT JOIN ts_user t3 on t3.USID = wg_committee_user.committer_id
|
||||||
|
where 1=1
|
||||||
|
<if test="committeeName != null and ''!=committeeName">
|
||||||
|
and wg_committee.committee_name like concat(concat('%',#{committeeName}),'%')
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.adc.da.slrs.wgCommitteeUser.dao.WgCommitteeUserDao">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Reference in New Issue
Block a user