|
@@ -63,6 +63,7 @@ import org.springblade.system.user.service.IUserOauthService;
|
|
import org.springblade.system.user.service.IUserService;
|
|
import org.springblade.system.user.service.IUserService;
|
|
import org.springblade.system.user.util.FileUtils;
|
|
import org.springblade.system.user.util.FileUtils;
|
|
import org.springblade.system.user.util.ForestNodeMerger;
|
|
import org.springblade.system.user.util.ForestNodeMerger;
|
|
|
|
+import org.springblade.system.user.vo.InformationQueryVO1;
|
|
import org.springblade.system.user.vo.UserVO;
|
|
import org.springblade.system.user.vo.UserVO;
|
|
import org.springblade.system.user.wrapper.UserWrapper;
|
|
import org.springblade.system.user.wrapper.UserWrapper;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -1172,6 +1173,21 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
|
|
return vo2;
|
|
return vo2;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public List<InformationQueryVO1> queryInformationByContractIdAndName(String contractId, String name) {
|
|
|
|
+ if (StringUtil.isEmpty(contractId)) {
|
|
|
|
+ throw new ServiceException("未获取到合同段id");
|
|
|
|
+ }
|
|
|
|
+ ContractInfo contract = jdbcTemplate.query("SELECT * FROM m_contract_info WHERE id = " + contractId, new BeanPropertyRowMapper<>(ContractInfo.class)).stream().findAny().orElse(null);
|
|
|
|
+ if (ObjectUtil.isEmpty(contract)) {
|
|
|
|
+ throw new ServiceException("获取合同段信息失败");
|
|
|
|
+ }
|
|
|
|
+ if(!contract.getPId().equals("1792760669353865218")){
|
|
|
|
+ throw new ServiceException("请输入正确的合同段id");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return baseMapper.queryInformationByContractIdAndName(contractId,name);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
private List<PrivateTreeVO> buildTree(List<WbsTreePrivate> wbsTreePrivatesNodes, String projectId) {
|
|
private List<PrivateTreeVO> buildTree(List<WbsTreePrivate> wbsTreePrivatesNodes, String projectId) {
|