Commit a64cebd4 authored by 徐俊's avatar 徐俊

Merge branch 'master' of http://gitlab.yiboshi.com/XuJun/yn-health-science

# Conflicts:
#	science-admin/src/main/java/com/yiboshi/science/param/dto/ComProjectDTO.java
#	science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectServiceImpl.java
parents 8f4e433b 90574225
......@@ -27,11 +27,11 @@ public class ComProjectStageGoal extends BaseEntity {
private String objectId;
/** 内容 */
@ApiModelProperty(value = "内容", position = 2 )
@Length(max=2000, message = "内容不能大于2000")
@Length(max=3000, message = "内容不能大于3000")
private String contentInfo;
/** 阶段目标 */
@ApiModelProperty(value = "阶段目标", position = 5 )
@Length(max=500, message = "阶段目标不能大于500")
@Length(max=3000, message = "阶段目标不能大于3000")
private String target;
/** 开始时间 */
@ApiModelProperty(value = "开始时间", position = 3 )
......@@ -41,10 +41,6 @@ public class ComProjectStageGoal extends BaseEntity {
@ApiModelProperty(value = "结束时间", position = 4 )
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
private Date endTime;
/** 类型 (参数表获取) */
@ApiModelProperty(value = "类型 (参数表获取)", position = 5 )
@Length(max=36, message = "类型 (参数表获取)不能大于36")
private String contentType;
/** 排序 */
@ApiModelProperty(value = "排序", position = 6 )
private Integer showIndex;
......
......@@ -307,12 +307,7 @@ public class CommonEnum {
public enum projState implements INumberEnum {
draft(-10, "起草"),
waitSubmit(10, "待提交"),
toUnit(20, "单位评审"),
toCounty(22, "县(区)评审"),
toCity(24, "州(市)评审"),
toProvinceFirstTrial(25, "省卫健委初审"),
toExpert(26, "专家评审"),
toProvince(28, "省卫健委复审"),
toAudit(20, "评审中"),
returnModify(30, "返回修改"),
failed(40, "未批准立项"),
pass(50, "批准立项"),
......
......@@ -317,24 +317,29 @@ public class ComProjectDTO extends BaseDTO {
/** 合作单位 */
private List<ComProjectCooperativeUnitsDTO> cooperativeUnits;
/** 项目主要参与单位 */
private List<ComProjectCooperativeUnitsDTO> participateUnits;
/** 项目组成员 */
private List<ComProjectMembersDTO> members;
/** 经费表 */
private List<ComProjectBudgetDTO> budget;
/** 年度用款计划 */
private List<ComProjectFundPlanDTO> fundPlan;
/** 项目绩效目标表 */
private ProjectKPIStatisticDTO projectKPI;
/** 购置设备预算明细表 */
private List<ComProjectEquipmentDTO> equipments;
/** 购置设备预算明细表 */
private List<ComProjectEquipmentDTO> deviceList;
/** 试制设备预算明细表 */
private List<ComProjectManufactureDTO> manufacture;
/** 项目绩效目标表 */
private ProjectKPIStatisticDTO projectKPI;
/** 项目安排及阶段目标 */
private List<ComProjectStageGoalDTO> stageGoals;
/** 项目课颖设置表 */
private List<ComProjectSubDTO> projectSubList;
<<<<<<< HEAD
/** 试制设备预算明细表 */
private List<ComProjectManufactureDTO> manufactureList;
=======
>>>>>>> 90574225c4c1f47742d66430afac9c7d3cf70f6a
/** 附件列表 */
private List<ComFileDTO> fileList;
/** 审核列表 */
......
......@@ -26,11 +26,11 @@ public class ComProjectStageGoalDTO extends BaseDTO {
private String objectId;
/** 内容 */
@ApiModelProperty(value = "内容", position = 2 )
@Length(max=2000, message = "内容不能大于2000")
@Length(max=3000, message = "内容不能大于3000")
private String contentInfo;
/** 阶段目标 */
@ApiModelProperty(value = "阶段目标", position = 5 )
@Length(max=500, message = "阶段目标不能大于500")
@Length(max=3000, message = "阶段目标不能大于3000")
private String target;
/** 开始时间 */
@ApiModelProperty(value = "开始时间", position = 3 )
......@@ -40,10 +40,6 @@ public class ComProjectStageGoalDTO extends BaseDTO {
@ApiModelProperty(value = "结束时间", position = 4 )
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
private Date endTime;
/** 类型 (参数表获取) */
@ApiModelProperty(value = "类型 (参数表获取)", position = 5 )
@Length(max=36, message = "类型 (参数表获取)不能大于36")
private String contentType;
/** 排序 */
@ApiModelProperty(value = "排序", position = 6 )
private Integer showIndex;
......
......@@ -6,6 +6,7 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
......@@ -26,8 +27,13 @@ public class ComProjectStageGoalQueryVO extends PaginationVO{
@ApiModelProperty(value = "任务书Id", position = 1)
private String objectId;
/** 内容 */
@ApiModelProperty(value = "内容", position = 2)
@ApiModelProperty(value = "内容", position = 2 )
@Length(max=3000, message = "内容不能大于3000")
private String contentInfo;
/** 阶段目标 */
@ApiModelProperty(value = "阶段目标", position = 5 )
@Length(max=3000, message = "阶段目标不能大于3000")
private String target;
/** 开始时间 */
@ApiModelProperty(value = "开始时间", position = 3)
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
......@@ -36,9 +42,6 @@ public class ComProjectStageGoalQueryVO extends PaginationVO{
@ApiModelProperty(value = "结束时间", position = 4)
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
private Date endTime;
/** 类型 (参数表获取) */
@ApiModelProperty(value = "类型 (参数表获取)", position = 5)
private String contentType;
/** 排序 */
@ApiModelProperty(value = "排序", position = 6)
private Integer showIndex;
......
......@@ -28,7 +28,7 @@ public interface ComProjectService extends BaseService<ComProjectQueryVO, ComPro
*
* @return
*/
void updateState(String id, Integer state, String versionNo);
void updateStateOrNo(String id, Integer state, String versionNo);
/**
* 获取新的版本号
......
......@@ -196,7 +196,7 @@ public class ComExpertServiceImpl extends BaseServiceImpl<ComExpertDAO, ComExper
//职称
List<SystemParameter> titleList = systemParameterService.getListByType(7);
//专业学科
List<SystemParameter> specList = systemParameterService.getListByType(57);
List<SystemParameter> specList = systemParameterService.getListByType(68);
list.forEach(e -> {
if (null != comPersonService.getPersonByCertId(e.getCertId()))
return;
......
......@@ -193,7 +193,7 @@ public class ComProjectConclusionServiceImpl extends BaseServiceImpl<ComProjectC
modal.setId(conclusion.getId());
modal.setState(CommonEnum.conclusionState.report.getCode());
modal.setThesisState(CommonEnum.thesisState.pass.getCode());
comProjectService.updateState(conclusion.getProjId(), CommonEnum.projState.report.getCode(), null);
comProjectService.updateStateOrNo(conclusion.getProjId(), CommonEnum.projState.report.getCode(), null);
comProjectAuditService.report(DateUtils.getYear(), conclusion.getId(), 4, auditUnitId, treeCode);
return this.update(modal);
}
......@@ -210,7 +210,7 @@ public class ComProjectConclusionServiceImpl extends BaseServiceImpl<ComProjectC
Integer state = null;
if (e.getAuditResult().equals(CommonEnum.auditResult.pass.getCode())) {
state = CommonEnum.conclusionState.pass.getCode();
comProjectService.updateState(model.getProjId(), CommonEnum.projState.conclusion.getCode(), null);
comProjectService.updateStateOrNo(model.getProjId(), CommonEnum.projState.conclusion.getCode(), null);
} else if (e.getAuditResult().equals(CommonEnum.auditResult.returnModify.getCode())) {
state = CommonEnum.conclusionState.returnModify.getCode();
} else {
......@@ -236,7 +236,7 @@ public class ComProjectConclusionServiceImpl extends BaseServiceImpl<ComProjectC
Integer state = null;
if (e.getAuditResult().equals(CommonEnum.auditResult.pass.getCode())) {
state = CommonEnum.thesisState.pass.getCode();
comProjectService.updateState(model.getProjId(), CommonEnum.projState.conclusion.getCode(), null);
comProjectService.updateStateOrNo(model.getProjId(), CommonEnum.projState.conclusion.getCode(), null);
} else if (e.getAuditResult().equals(CommonEnum.auditResult.returnModify.getCode())) {
state = CommonEnum.thesisState.returnModify.getCode();
} else {
......@@ -307,7 +307,7 @@ public class ComProjectConclusionServiceImpl extends BaseServiceImpl<ComProjectC
c.setThesisState(CommonEnum.thesisState.unFilled.getCode());
this.update(c);
}
comProjectService.updateState(projId, CommonEnum.projState.conclusion.getCode(), null);
comProjectService.updateStateOrNo(projId, CommonEnum.projState.conclusion.getCode(), null);
comProjectAuditService.insertAudit(comProject.getReportYear(), 4, id, CommonEnum.auditMethod.audit.getCode(),
auditUnitId, null, CommonEnum.auditResult.pass.getCode(), new Date(), 1, 1, SecurityUserHolder.getPersonId());
......
......@@ -133,11 +133,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
break;
case 3:
criteria.in("proj_state",
CommonEnum.projState.toUnit.getCode(),
CommonEnum.projState.toCounty.getCode(),
CommonEnum.projState.toCity.getCode(),
CommonEnum.projState.toProvince.getCode(),
CommonEnum.projState.toExpert.getCode(),
CommonEnum.projState.toAudit.getCode(),
CommonEnum.projState.failed.getCode(),
CommonEnum.projState.pass.getCode(),
CommonEnum.projState.report.getCode(),
......@@ -243,6 +239,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
}
return "";
}
/**
* 根据id获取项目信息
*/
......@@ -336,14 +333,6 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
dto.setAppUnitName(comUnitDTO.getUnitName());
}
// 项目合作单位
List<ComProjectCooperativeUnitsDTO> cooperativeUnits = comProjectCooperativeUnitsService.getListByObjectId(dto.getId(),1);
dto.setCooperativeUnits(cooperativeUnits);
//获取项目组成员
List<ComProjectMembersDTO> memList = comProjectMembersService.getListByObjectId(dto.getId());
dto.setMembers(memList);
ComProjectMembersDTO comProjectMembersDTO = comProjectMembersService.getMemCountById(id);
dto.setMemCount(comProjectMembersDTO.getMemCount());
dto.setMemHighCount(comProjectMembersDTO.getMemHighCount());
......@@ -355,6 +344,14 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
dto.setMemXsCount(comProjectMembersDTO.getMemXsCount());
dto.setWorkCount(comProjectMembersDTO.getWorkCount());
// 项目合作单位
List<ComProjectCooperativeUnitsDTO> cooperativeUnits = comProjectCooperativeUnitsService.getListByObjectId(dto.getId(), 1);
dto.setCooperativeUnits(cooperativeUnits);
//获取项目组成员
List<ComProjectMembersDTO> memList = comProjectMembersService.getListByObjectId(dto.getId());
dto.setMembers(memList);
//经费表
List<ComProjectBudgetDTO> budgetList = comProjectBudgetService.getListByObjectId(dto.getId());
if (null == budgetList || budgetList.size() == 0)
......@@ -373,7 +370,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
// 购置设备预算明细表
List<ComProjectEquipmentDTO> equipmentList = comProjectEquipmentService.getListByObjectId(dto.getId());
dto.setEquipments(equipmentList);
dto.setDeviceList(equipmentList);
// 试制设备预算明细表
List<ComProjectManufactureDTO> manufactureList = comProjectManufactureService.getListByObjectId(dto.getId());
......@@ -407,9 +404,6 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
fileList = checkNecessaryAttachmentFile(dto.getProjType(), fileList);
dto.setFileList(fileList);
//审核记录列表
List<ComProjectAuditNoteDTO> auditList = comProjectAuditNoteService.getListByObjectId(dto.getId());
dto.setAuditList(auditList);
......@@ -487,7 +481,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
else//临床科技项目
parameterList = systemParameterService.getListByType(13);
parameterList.forEach(e -> {
fileList.add(configureFile(e.getName(), e.getDisplayOrder(),e.getIsRequired()));
fileList.add(configureFile(e.getName(), e.getDisplayOrder(), e.getIsRequired()));
});
return fileList;
}
......@@ -534,8 +528,8 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
parameterList.forEach(p -> {
List<ComFileDTO> findList = fileList.stream().filter(e -> null != e.getFileExplain() && e.getFileExplain().equals(p.getName())).collect(Collectors.toList());
if (findList.size() == 0) {
ComFileDTO fileDTO = configureFile(p.getName(), p.getDisplayOrder(),p.getIsRequired());
fileList.add( fileDTO);
ComFileDTO fileDTO = configureFile(p.getName(), p.getDisplayOrder(), p.getIsRequired());
fileList.add(fileDTO);
}
});
......@@ -563,7 +557,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
*
* @return
*/
public void updateState(String id, Integer state, String versionNo) {
public void updateStateOrNo(String id, Integer state, String versionNo) {
ComProject comProject = new ComProject();
comProject.setId(id);
comProject.setProjState(state);
......@@ -571,35 +565,6 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
this.update(comProject);
}
/**
* 更新项目状态
*
* @return
*/
private void updateStateByAuditUnitId(String id, String auditUnitId, String unitId, Integer projType) {
Integer state = null;
ComUnit unit = comUnitService.getById(unitId);
if (null == unit)
throw new BusinessException("审核单位不存在或已删除!");
Integer level = unit.getTreeCode().length() / properties.getDefaultCodeLength();
if (auditUnitId.equals(unitId)) {
state = CommonEnum.projState.toExpert.getCode();
} else if (unit.getUnitType().equals(CommonEnum.unitType.gov.getCode())) {
if (level.equals(1)) {
if (projType.equals(CommonEnum.projType.key.getCode()))
state = CommonEnum.projState.toProvinceFirstTrial.getCode();
else
state = CommonEnum.projState.toExpert.getCode();
} else if (level.equals(2)) {
state = CommonEnum.projState.toCity.getCode();
} else {
state = CommonEnum.projState.toCounty.getCode();
}
} else {
state = CommonEnum.projState.toUnit.getCode();
}
this.updateState(id, state, null);
}
public String updateUnit(ComProjectDTO dto) {
if (Objects.isNull(dto.getAppUnitId()))
......@@ -623,7 +588,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
else
versionNo = this.getVersionNo(comProject.getVersionNo());
// 更新项目状态
this.updateState(model.getAuditObjectId(), CommonEnum.projState.toUnit.getCode(), versionNo);
this.updateStateOrNo(model.getAuditObjectId(), CommonEnum.projState.toAudit.getCode(), versionNo);
}
@Transactional
......@@ -638,6 +603,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
throw new BusinessException("申报单位不存在,或已删除!");
// 返回上级或下级单位Id, 最高级或个人返回 null
String unitId = comProjectAuditService.audit(report, appUnit.getTreeCode(), auditTreeCode);
// 处理项目状态
Integer projState = null;
if (report.getAuditResult().equals(CommonEnum.auditResult.pass.getCode())) {
......@@ -650,9 +616,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
projState = CommonEnum.projState.failed.getCode();
}
if (null != projState)
this.updateState(report.getAuditObjectId(), projState, null);
else
this.updateStateByAuditUnitId(report.getAuditObjectId(), auditUnitId, unitId, model.getProjType());
this.updateStateOrNo(report.getAuditObjectId(), projState, null);
}
public DataStatisticsDTO getCount(ComProject e) {
......@@ -669,7 +633,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
if (comProject.getProjState() > CommonEnum.projState.waitSubmit.getCode())
throw new BusinessException("当前项目状态不能删除");
// 项目合作单位
comProjectCooperativeUnitsService.deleteByObjectId(id,1);
comProjectCooperativeUnitsService.deleteByObjectId(id, 1);
// comProjectCooperativeUnitsService.deleteByObjectId(id,2);
// 项目参加人员
comProjectMembersService.deleteByObjectId(id);
......@@ -738,6 +702,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
comProject.setCompleted(0);
comProject.setAssignState(0);
String id = this.insert(comProject);
<<<<<<< HEAD
// 项目合作单位
comProjectCooperativeUnitsService.insertList(dto.getCooperativeUnits(), id,1);
......@@ -774,7 +739,10 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
// 附件
ComFileService.insertList(dto.getFileList(), id, CommonEnum.fileType.project.getCode());
=======
>>>>>>> 90574225c4c1f47742d66430afac9c7d3cf70f6a
dto.setId(id);
this.saveList(dto,id);
comProjectBasicService.insertOrUpdate(dto);
return id;
}
......@@ -798,44 +766,56 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
// if (null != knowledgeId && null != comProject.getKnowledgeId() && !knowledgeId.equals(comProject.getKnowledgeId())) {
// comProject.setProjNo(getProjectNo(comProject.getReportYear(), systemParameterService.getParameterById(comProject.getKnowledgeId()).getGbCode()));
// }
this.saveList(dto,dto.getId());
comProjectBasicService.insertOrUpdate(dto);
return this.update(comProject);
}
@Transactional
public void saveList(ComProjectDTO dto, String id) {
// 项目合作单位
comProjectCooperativeUnitsService.insertList(dto.getCooperativeUnits(), comProject.getId(),1);
comProjectCooperativeUnitsService.insertList(dto.getCooperativeUnits(), id, 1);
// 主要参与单位
// comProjectCooperativeUnitsService.insertList(dto.getParticipateUnits(), comProject.getId(),2);
// 项目参加人员
comProjectMembersService.insertList(dto.getMembers(), comProject.getId());
comProjectMembersService.insertList(dto.getMembers(), id);
// 经费预算
comProjectBudgetService.insertBudgetList(dto.getBudget(), comProject.getId());
comProjectBudgetService.insertBudgetList(dto.getBudget(), id);
// 年度用款计划表
<<<<<<< HEAD
comProjectFundPlanService.insertList(dto.getFundPlan(), comProject.getId());
// 购置设备预算明细表
comProjectEquipmentService.insertEquipmentList(dto.getEquipments(), comProject.getId());
// 试制设备预算明细表
comProjectManufactureService.insertEquipmentList(dto.getManufactureList(), comProject.getId());
=======
comProjectFundPlanService.insertList(dto.getFundPlan(), id);
>>>>>>> 90574225c4c1f47742d66430afac9c7d3cf70f6a
// 单位支出明细预算表
// comProjectUnitPaymentService.insertList(dto.getUnitPayment(), comProject.getId());
// comProjectUnitPaymentService.insertList(dto.getUnitPayment(), id);
// 项目绩效指标表
comProjectKpitDetailService.insertList(dto.getProjectKPI().getKpiList(), comProject.getId());
comProjectKpitDetailService.insertList(dto.getProjectKPI().getKpiList(), id);
// 项目经费构成表
// comProjectFundCompositionService.insertList(dto.getFundCompositions(), comProject.getId());
// comProjectFundCompositionService.insertList(dto.getFundCompositions(), id);
// 购置设备预算明细表
comProjectEquipmentService.insertEquipmentList(dto.getDeviceList(), id);
// 试制设备预算明细表
comProjectManufactureService.insertEquipmentList(dto.getManufacture(), id);
// 在研或完成基础研究项目情况
// comProjectResearchService.insertList(dto.getProjectResearchList(), comProject.getId());
// comProjectResearchService.insertList(dto.getProjectResearchList(), id);
// 项目课颖设置表
// comProjectSubService.insertList(dto.getProjectSubList(), comProject.getId());
// comProjectSubService.insertList(dto.getProjectSubList(), id);
// 单位科研项目及资金管理制度表
// comProjectManagementRuleService.insertList(dto.getManagementRuleList(), comProject.getId());
// comProjectManagementRuleService.insertList(dto.getManagementRuleList(), id);
// // 项目安排及阶段目标
// comProjectStageGoalService.insertList(dto.getStageGoals(), id);
// // 成果形式
// comProjectResultsService.insertList(dto.getResults(), id);
// 附件
ComFileService.insertList(dto.getFileList(), comProject.getId(), CommonEnum.fileType.project.getCode());
comProjectBasicService.insertOrUpdate(dto);
return this.update(comProject);
ComFileService.insertList(dto.getFileList(), id, CommonEnum.fileType.project.getCode());
}
public void export(@PathVariable String id, HttpServletRequest request, HttpServletResponse response) {
ComProjectDTO p = this.getProjectById(id);
if (null != p) {
......
......@@ -13,7 +13,7 @@
<select id="getListByExpertId" parameterType="java.lang.String" resultType="com.yiboshi.science.param.dto.ComExpertSpecDTO">
SELECT a.spec_id,b.name specName
FROM com_expert_spec a
left join system_parameter b on a.spec_id=b.id and b.type_id=57
left join system_parameter b on a.spec_id=b.id and b.type_id=68
where expert_id=#{expertId} order by a.show_index
</select>
<select id="getExpertListBySpecId" resultType="com.yiboshi.science.param.dto.ComExpertDTO">
......
......@@ -23,7 +23,7 @@
left join system_parameter g on e.nation=g.id and g.type_id=11
left join system_parameter h on e.education=h.id and h.type_id=8
left join system_parameter i on e.title=i.id and i.type_id=7
left join system_parameter j on e.spec=j.id and j.type_id=42
left join system_parameter j on e.spec=j.id and j.type_id=68
left join system_parameter k on j.parent_id = k.id
<where>
${ew.sqlSegment}
......@@ -39,7 +39,7 @@
left join system_parameter g on e.nation=g.id and g.type_id=11
left join system_parameter h on e.education=h.id and h.type_id=8
left join system_parameter i on e.title=i.id and i.type_id=7
left join system_parameter j on e.spec=j.id and j.type_id=42
left join system_parameter j on e.spec=j.id and j.type_id=68
left join system_parameter k on j.parent_id = k.id
<where>
${ew.sqlSegment}
......@@ -62,7 +62,7 @@
left join system_parameter c on a.nation = c.id and c.type_id = 11
left join system_parameter d on a.education = d.id and d.type_id = 8
left join system_parameter e on a.title = e.id and e.type_id = 7
left join system_parameter f on a.spec = f.id and f.type_id = 42
left join system_parameter f on a.spec = f.id and f.type_id = 68
left join system_parameter h on a.degree = h.id and h.type_id = 9
where a.id = #{id}
</select>
......@@ -73,7 +73,7 @@
left join system_parameter c on a.nation = c.id and c.type_id = 11
left join system_parameter d on a.education = d.id and d.type_id = 8
left join system_parameter e on a.title = e.id and e.type_id = 7
left join system_parameter f on a.spec = f.id and f.type_id = 42
left join system_parameter f on a.spec = f.id and f.type_id = 68
</select>
<select id="getManagerListByUnitId" resultType="com.yiboshi.science.param.dto.ComPersonDTO">
SELECT a.*,b.unit_name,c.username,c.password,c.id user_id,d.id user_role_id,d.state,
......
......@@ -12,8 +12,8 @@
LEFT JOIN com_expert b ON a.expert_id = b.id
LEFT JOIN com_person c ON b.person_id = c.id
LEFT JOIN com_unit g ON c.unit_id = g.id
left join system_parameter d on a.knowledge_id = d.id and d.type_id = 57
left join system_parameter e on c.title=e.id and e.type_id = 7
left join system_parameter d on a.knowledge_id = d.id
left join system_parameter e on c.title=e.id
<where>
${ew.sqlSegment}
</where>
......
......@@ -18,7 +18,7 @@
left join system_parameter c on a.nation=c.id and c.type_id=11
left join system_parameter d on a.title = d.id and d.type_id=7
left join system_parameter e on a.degree=e.id and e.type_id=9
left join system_parameter f on a.spec=f.id and f.type_id=42
left join system_parameter f on a.spec=f.id and f.type_id=68
left join com_download g on a.file_id=g.id
where object_id=#{objectId}
order by a.show_index asc
......
......@@ -30,7 +30,7 @@
LEFT JOIN system_parameter g on e.nation=g.id and g.type_id=11
LEFT JOIN system_parameter h on e.education=h.id and h.type_id=8
LEFT JOIN system_parameter i on e.title=i.id and i.type_id=7
LEFT JOIN system_parameter j on e.spec=j.id and j.type_id=42
LEFT JOIN system_parameter j on e.spec=j.id and j.type_id=68
LEFT JOIN system_parameter k on j.parent_id = k.id
<where>
${ew.sqlSegment}
......@@ -47,7 +47,7 @@
LEFT JOIN system_parameter g on e.nation=g.id and g.type_id=11
LEFT JOIN system_parameter h on e.education=h.id and h.type_id=8
LEFT JOIN system_parameter i on e.title=i.id and i.type_id=7
LEFT JOIN system_parameter j on e.spec=j.id and j.type_id=42
LEFT JOIN system_parameter j on e.spec=j.id and j.type_id=68
LEFT JOIN system_parameter k on j.parent_id = k.id
where a.id = #{id}
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment