update 功能安全中心 企业端 详情
This commit is contained in:
@@ -41,6 +41,10 @@ public class ProjectCommon {
|
|||||||
* 项目类型(1:普通项目,2:工作组项目,3:会议项目,4:会员项目,5:标协会员项目,6:证书,7: 起草组项目)
|
* 项目类型(1:普通项目,2:工作组项目,3:会议项目,4:会员项目,5:标协会员项目,6:证书,7: 起草组项目)
|
||||||
*/
|
*/
|
||||||
public final static String PROJECT_TYPE7 = "7";
|
public final static String PROJECT_TYPE7 = "7";
|
||||||
|
/**
|
||||||
|
* 项目类型(1:普通项目,2:工作组项目,3:会议项目,4:会员项目,5:标协会员项目,6:证书,7: 起草组项目,8: 功能安全中心项目)
|
||||||
|
*/
|
||||||
|
public final static String PROJECT_TYPE8 = "8";
|
||||||
/**
|
/**
|
||||||
* 来源(1:收入合同,2:打包管理)
|
* 来源(1:收入合同,2:打包管理)
|
||||||
*/
|
*/
|
||||||
|
|||||||
+45
@@ -133,6 +133,51 @@
|
|||||||
AND ppc.id = #{projectId}
|
AND ppc.id = #{projectId}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
<!-- 功能安全中心项目-->
|
||||||
|
UNION ALL
|
||||||
|
SELECT
|
||||||
|
g.id,
|
||||||
|
g.project_name,
|
||||||
|
'',
|
||||||
|
g.principal_id,
|
||||||
|
su.realname,
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
g.create_time,
|
||||||
|
9,
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
g.remarks,
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
g.mission_and_objectives,
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
''
|
||||||
|
FROM
|
||||||
|
pay_functional_safety_center g
|
||||||
|
LEFT JOIN
|
||||||
|
sys_user su ON g.principal_id = su.id
|
||||||
|
<where>
|
||||||
|
<if test="projectId != null and projectId != ''">
|
||||||
|
AND g.id = #{projectId}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="queryProjectList" resultType="com.jero.project.entity.PayCommonProject">
|
<select id="queryProjectList" resultType="com.jero.project.entity.PayCommonProject">
|
||||||
<!-- 普通项目-->
|
<!-- 普通项目-->
|
||||||
|
|||||||
+22
@@ -559,6 +559,28 @@ public class PayCommonProjectController extends JeroController<PayCommonProject,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 功能安全中心项目资料
|
||||||
|
if(Objects.equals(String.valueOf(payCommonProject.getProjectType()), ProjectCommon.PROJECT_TYPE8)){
|
||||||
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
|
LambdaQueryWrapper<PayWorkingGroupDistributionRecord> queryPayWorkingGroupDistributionRecord = new LambdaQueryWrapper<>();
|
||||||
|
queryPayWorkingGroupDistributionRecord.eq(PayWorkingGroupDistributionRecord::getProjectId,id);
|
||||||
|
queryPayWorkingGroupDistributionRecord.eq(PayWorkingGroupDistributionRecord::getContactsId,sysUser.getId());
|
||||||
|
queryPayWorkingGroupDistributionRecord.groupBy(PayWorkingGroupDistributionRecord::getFileId);
|
||||||
|
List<PayWorkingGroupDistributionRecord> listPayWorkingGroupDistributionRecord = payWorkingGroupDistributionRecordService.list(queryPayWorkingGroupDistributionRecord);
|
||||||
|
if(!CollectionUtils.isEmpty(listPayWorkingGroupDistributionRecord)){
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
listPayWorkingGroupDistributionRecord.forEach(p->{
|
||||||
|
sb.append(p.getFileId());
|
||||||
|
if(listPayWorkingGroupDistributionRecord.indexOf(p) != (listPayWorkingGroupDistributionRecord.size() - 1)){
|
||||||
|
sb.append(",");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
payCommonProject.setFiles(sb.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
String strProject = JSON.toJSONString(payCommonProject);
|
String strProject = JSON.toJSONString(payCommonProject);
|
||||||
payCompanyCommonProject = JSONObject.parseObject(strProject,PayCompanyCommonProject.class);
|
payCompanyCommonProject = JSONObject.parseObject(strProject,PayCompanyCommonProject.class);
|
||||||
if(Objects.isNull(payCompanyCommonProject.getPaidAmount())){
|
if(Objects.isNull(payCompanyCommonProject.getPaidAmount())){
|
||||||
|
|||||||
Reference in New Issue
Block a user