供应商接口修改

This commit is contained in:
2025-10-13 21:47:46 +08:00
parent 79f74434f7
commit 2497527c77
6 changed files with 26 additions and 8 deletions

View File

@ -1191,13 +1191,14 @@ public class BusProjectServiceImpl extends ServiceImpl<BusProjectMapper, BusProj
public Map<String, Map<String, Object>> getInfoData(TanchuangInfoReq req) {
Map<String, Map<String, Object>> map = new HashMap<>();
SubConstructionUser byUserId = constructionUserService.getByUserId(req.getId());
SubContractor contractor = contractorService.getById(byUserId.getContractorId());
Map<String, Object> renyuan = new HashMap<>();
renyuan.put("name", byUserId.getUserName());
renyuan.put("teamName", byUserId.getTeamName());
renyuan.put("phone", byUserId.getPhone());
renyuan.put("typeOfWork", dictDataService.selectDictLabel("type_of_work", byUserId.getTypeOfWork()));
renyuan.put("contractorNmae", contractor.getName());
if (byUserId != null){
renyuan.put("name", byUserId.getUserName() != null ? byUserId.getUserName():"");
renyuan.put("teamName", byUserId.getTeamName() != null ? byUserId.getTeamName():"");
renyuan.put("phone", byUserId.getPhone() != null ? byUserId.getPhone():"");
renyuan.put("typeOfWork", dictDataService.selectDictLabel("type_of_work", byUserId.getTypeOfWork()));
renyuan.put("contractorNmae",byUserId.getContractorId() != null ? contractorService.getById(byUserId.getContractorId()).getName():"");
}
map.put("renyuan", renyuan);
return map;
}

View File

@ -4,6 +4,8 @@ import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDate;
import java.util.Date;
import java.io.Serial;
@ -86,12 +88,12 @@ public class XzdDeductionItems extends BaseEntity {
/**
* 归还时间
*/
private Date returnTime;
private LocalDate returnTime;
/**
* 变更归还时间
*/
private Date changeReturnTime;
private LocalDate changeReturnTime;
/**
* 申请扣除01

View File

@ -67,4 +67,6 @@ public interface IXzdProjectService extends IService<XzdProject>{
* @return 是否删除成功
*/
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
String queryNameById(Long projectId);
}

View File

@ -73,4 +73,5 @@ public interface IXzdSupplierInfoService extends IService<XzdSupplierInfo>{
R<List<XzdCustomertypeVo>> typeList();
String queryNameById(Long id);
}

View File

@ -503,6 +503,12 @@ public class XzdProjectServiceImpl extends ServiceImpl<XzdProjectMapper, XzdProj
return baseMapper.deleteByIds(ids) > 0;
}
@Override
public String queryNameById(Long projectId) {
XzdProject xzdProject = baseMapper.selectById(projectId);
return xzdProject != null ? xzdProject.getProjectName() : "";
}
private void setValue(XzdProjectVo entity){
//项目概况

View File

@ -630,6 +630,12 @@ public class XzdSupplierInfoServiceImpl extends ServiceImpl<XzdSupplierInfoMappe
return R.ok(vos);
}
@Override
public String queryNameById(Long id) {
XzdSupplierInfo xzdSupplierInfo = baseMapper.selectById(id);
return xzdSupplierInfo != null ? xzdSupplierInfo.getUnitName():null;
}
private void getChildren(List<XzdCustomertypeVo> list){
LambdaQueryWrapper<XzdCustomertype> queryWrapper = new LambdaQueryWrapper<>();