|
|
@ -15,16 +15,20 @@ import com.kms.build.domain.BsSgcJsjdBuiConAcc; |
|
|
|
import com.kms.build.domain.BsSgcJsjdBuiContInfo; |
|
|
|
import com.kms.build.domain.BsSgcjsjdBuiProInfo; |
|
|
|
import com.kms.build.domain.dto.AssertStatisticsDto; |
|
|
|
import com.kms.build.domain.dto.HistogramDto; |
|
|
|
import com.kms.build.mapper.BsSgcjsjdBuiProInfoMapper; |
|
|
|
import com.kms.common.utils.UserUtils; |
|
|
|
import com.kms.earlyStage.domain.SpecialProjectInfo; |
|
|
|
import com.kms.system.service.SysDeptService; |
|
|
|
import com.kms.system.service.SysXzqhService; |
|
|
|
import lombok.Data; |
|
|
|
import org.apache.ibatis.reflection.wrapper.BaseWrapper; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
@ -157,15 +161,14 @@ public class BsSgcjsjdBuiProInfoService extends BaseService<BsSgcjsjdBuiProInfoM |
|
|
|
String isMajor = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String projectType = data.getProjectType(); |
|
|
|
if (!ObjectUtil.isNull(projectType)) { |
|
|
|
String[] split = projectType.split(","); |
|
|
|
isMajor=split[0]; |
|
|
|
isMajor = split[0]; |
|
|
|
if (" ".equals(split[1])) { |
|
|
|
projectType=null; |
|
|
|
}else { |
|
|
|
projectType=split[1]; |
|
|
|
projectType = null; |
|
|
|
} else { |
|
|
|
projectType = split[1]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -174,7 +177,7 @@ public class BsSgcjsjdBuiProInfoService extends BaseService<BsSgcjsjdBuiProInfoM |
|
|
|
IPage<BsSgcjsjdBuiProInfo> list = null; |
|
|
|
|
|
|
|
|
|
|
|
list = bsSgcjsjdBuiProInfoMapper.selectManagePage(data.getId(), data.getProjectName(), isMajor,projectType, |
|
|
|
list = bsSgcjsjdBuiProInfoMapper.selectManagePage(data.getId(), data.getProjectName(), isMajor, projectType, |
|
|
|
sysXzqhService.getSubString(sp.getData().getAdcd()), |
|
|
|
"create_time", new Page<>(sp.getPageNum(), sp.getPageSize())); |
|
|
|
|
|
|
@ -210,11 +213,11 @@ public class BsSgcjsjdBuiProInfoService extends BaseService<BsSgcjsjdBuiProInfoM |
|
|
|
String projectType = data.getProjectType(); |
|
|
|
if (!ObjectUtil.isNull(projectType)) { |
|
|
|
String[] split = projectType.split(","); |
|
|
|
isMajor=split[0]; |
|
|
|
isMajor = split[0]; |
|
|
|
if (" ".equals(split[1])) { |
|
|
|
projectType=null; |
|
|
|
}else { |
|
|
|
projectType=split[1]; |
|
|
|
projectType = null; |
|
|
|
} else { |
|
|
|
projectType = split[1]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -226,7 +229,7 @@ public class BsSgcjsjdBuiProInfoService extends BaseService<BsSgcjsjdBuiProInfoM |
|
|
|
SysDept sysDept = sysDeptService.get(deptId); |
|
|
|
String xzqhId = sysDept.getXzqhId(); |
|
|
|
|
|
|
|
list = bsSgcjsjdBuiProInfoMapper.selectPageByCode(data.getId(), data.getProjectName(),isMajor, data.getProjectType(), |
|
|
|
list = bsSgcjsjdBuiProInfoMapper.selectPageByCode(data.getId(), data.getProjectName(), isMajor, data.getProjectType(), |
|
|
|
sysXzqhService.getSubString(xzqhId), |
|
|
|
"create_time", new Page<>(sp.getPageNum(), sp.getPageSize())); |
|
|
|
|
|
|
@ -244,25 +247,23 @@ public class BsSgcjsjdBuiProInfoService extends BaseService<BsSgcjsjdBuiProInfoM |
|
|
|
String isMajor = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String projectType = data.getProjectType(); |
|
|
|
if (!ObjectUtil.isNull(projectType)) { |
|
|
|
String[] split = projectType.split(","); |
|
|
|
isMajor=split[0]; |
|
|
|
isMajor = split[0]; |
|
|
|
if (" ".equals(split[1])) { |
|
|
|
projectType=null; |
|
|
|
}else { |
|
|
|
projectType=split[1]; |
|
|
|
projectType = null; |
|
|
|
} else { |
|
|
|
projectType = split[1]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assert sysUser != null; |
|
|
|
IPage<BsSgcjsjdBuiProInfo> list = null; |
|
|
|
|
|
|
|
|
|
|
|
list = bsSgcjsjdBuiProInfoMapper.selectManagePage(data.getId(), data.getProjectName(), isMajor,projectType, |
|
|
|
list = bsSgcjsjdBuiProInfoMapper.selectManagePage(data.getId(), data.getProjectName(), isMajor, projectType, |
|
|
|
sysXzqhService.getSubString(sp.getData().getAdcd()), |
|
|
|
"create_time", new Page<>(sp.getPageNum(), sp.getPageSize())); |
|
|
|
|
|
|
@ -288,10 +289,46 @@ public class BsSgcjsjdBuiProInfoService extends BaseService<BsSgcjsjdBuiProInfoM |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public String getHistogram() { |
|
|
|
public List<HashMap<String, Use>> getHistogram() { |
|
|
|
List<HistogramDto> list = bsSgcjsjdBuiProInfoMapper.getHistogram(); |
|
|
|
List<HashMap<String, Use>> hashMap = new ArrayList<>(); |
|
|
|
for (int i = 0; i < list.size(); i++) { |
|
|
|
HashMap<String, Use> map = new HashMap<>(); |
|
|
|
Use use = new Use(); |
|
|
|
if (list.get(i).getIsMajor() == "zd") { |
|
|
|
use.setZd(list.get(i).getNum()); |
|
|
|
} else { |
|
|
|
use.setMs(list.get(i).getNum()); |
|
|
|
} |
|
|
|
for (int j = 0; j < list.size(); j++) { |
|
|
|
|
|
|
|
|
|
|
|
if (list.get(i).getCity().equals(list.get(j).getCity()) |
|
|
|
&& !list.get(i).getIsMajor().equals(list.get(j).getIsMajor())) { |
|
|
|
if (list.get(j).getIsMajor() == "zd") { |
|
|
|
use.setZd(list.get(j).getNum()); |
|
|
|
} else { |
|
|
|
use.setMs(list.get(j).getNum()); |
|
|
|
} |
|
|
|
|
|
|
|
map.put(list.get(i).getCity(), use); |
|
|
|
}else { |
|
|
|
map.put(list.get(i).getCity(), use); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
hashMap.add(map); |
|
|
|
|
|
|
|
} |
|
|
|
return hashMap; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return ""; |
|
|
|
@Data |
|
|
|
public class Use { |
|
|
|
private String ms; |
|
|
|
|
|
|
|
private String zd; |
|
|
|
} |
|
|
|
} |
|
|
|