feat: 客户项目员工数统计去掉内部的;导入项目开始时间补充
This commit is contained in:
@@ -56,8 +56,9 @@ public class CustomerServiceImpl implements CustomerService {
|
||||
|
||||
@Override
|
||||
public DashboardRespVO dashboard() {
|
||||
Long customerCount = customerMapper.selectCount();
|
||||
Long projectCount = projectMapper.selectCount();
|
||||
Long customerCount = customerMapper.selectCount(Wrappers.<CustomerDO>lambdaQuery().ne(CustomerDO::getName, "AGT"));
|
||||
CustomerDO customerDO = customerMapper.selectOne(Wrappers.<CustomerDO>lambdaQuery().eq(CustomerDO::getName, "AGT"), false);
|
||||
Long projectCount = projectMapper.selectCount(Wrappers.<ProjectDO>lambdaQuery().ne(customerDO != null, ProjectDO::getCustomerId, customerDO.getId()));
|
||||
Long contractCount = projectMapper.selectCount(Wrappers.<ProjectDO>lambdaQuery().ne(ProjectDO::getContractCode, "0"));
|
||||
Long licenseCount = licenseMapper.selectCount();
|
||||
DashboardRespVO dashboardRespVO = new DashboardRespVO();
|
||||
|
||||
@@ -730,6 +730,7 @@ public class LicenseServiceImpl implements LicenseService {
|
||||
projectDO.setTechnicalOwnerB(customerMapper.getUserByName(importVO.getTechnicalOwnerBName()));
|
||||
projectDO.setDataType(1);
|
||||
projectDO.setCreateTime(createTime);
|
||||
projectDO.setStartTime(createTime);
|
||||
projectMapper.insert(projectDO);
|
||||
projectId = projectDO.getId();
|
||||
} else if (updateSupport) {
|
||||
@@ -741,6 +742,7 @@ public class LicenseServiceImpl implements LicenseService {
|
||||
projectDO.setTechnicalOwnerA(customerMapper.getUserByName(importVO.getTechnicalOwnerAName()));
|
||||
projectDO.setTechnicalOwnerB(customerMapper.getUserByName(importVO.getTechnicalOwnerBName()));
|
||||
projectDO.setCreateTime(createTime);
|
||||
projectDO.setStartTime(createTime);
|
||||
projectMapper.updateById(projectDO);
|
||||
} else {
|
||||
projectId = projectDO.getId();
|
||||
@@ -750,7 +752,7 @@ public class LicenseServiceImpl implements LicenseService {
|
||||
licenseDO.setProjectId(projectId);
|
||||
licenseDO.setSerialNo(serialNo);
|
||||
licenseDO.setStatus(LicenseStatusEnum.COMPLETED.getCode());
|
||||
licenseDO.setApplicant(WebFrameworkUtils.getLoginUserId());
|
||||
// licenseDO.setApplicant(WebFrameworkUtils.getLoginUserId());
|
||||
String expiryDateExt = importVO.getExpiryDateExt();
|
||||
LocalDateTime expiryDate;
|
||||
if ("永久".equals(expiryDateExt)) {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</select>
|
||||
|
||||
<select id="selectUserCount" resultType="Long">
|
||||
select count(*) from system_users WHERE deleted = 0;
|
||||
select count(*) from system_users WHERE deleted = 0 and username != 'agtuser';
|
||||
</select>
|
||||
|
||||
<select id="getUserByName" resultType="Long">
|
||||
|
||||
Reference in New Issue
Block a user