| | |
| | | |
| | | @ApiModelProperty("审核员id") |
| | | @TableField("check_id") |
| | | private Integer checkId; |
| | | private String checkId; |
| | | |
| | | @TableField(exist = false) |
| | | private String checkName; |
| | |
| | | |
| | | @ApiModelProperty("审核人员") |
| | | @TableField("person_id") |
| | | private Integer personId; |
| | | private String personId; |
| | | |
| | | @TableField(exist = false) |
| | | private String personName; |
| | |
| | | import com.gkhy.exam.system.mapper.InternalAuditCheckCatalogueMapper; |
| | | import com.gkhy.exam.system.mapper.InternalAuditCheckContentMapper; |
| | | import com.gkhy.exam.system.mapper.SysClauseManagementMapper; |
| | | import com.gkhy.exam.system.service.ExStudentService; |
| | | import com.gkhy.exam.system.service.InternalAuditCarryService; |
| | | import com.gkhy.exam.system.service.InternalAuditCheckService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | .eq(InternalAuditCarry::getYear, carry.getYear()) |
| | | .eq(InternalAuditCarry::getDelFlag,1)); |
| | | if (internalAuditCarries.size()>0){ |
| | | throw new ApiException("当前企业已有相关数据"); |
| | | return CommonResult.failed("当前企业已有相关数据"); |
| | | } |
| | | carry.setCreateBy(SecurityUtils.getUsername()); |
| | | carry.setCreateTime(LocalDateTime.now()); |
| | |
| | | iacd.`start_time`, |
| | | iacd.`end_time`, |
| | | iacd.`check_id` , |
| | | su.`name` as check_name |
| | | IFNULL(GROUP_CONCAT(DISTINCT es.`name` SEPARATOR ','), '') AS check_name |
| | | FROM |
| | | internal_audit_carry_dept iacd |
| | | LEFT JOIN sys_user su on iacd.check_id = su.id |
| | | left join sys_dept sd on iacd.dept_id = sd.dept_id |
| | | LEFT JOIN ex_student es ON FIND_IN_SET(es.`id`, iacd.`check_id`) |
| | | WHERE iacd.carry_id = #{carryId} |
| | | GROUP BY iacd.`id`; |
| | | </select> |
| | | </mapper> |
| | |
| | | iac.`dept_id`, |
| | | sd.dept_name, |
| | | iac.`person_id`, |
| | | es.`name` as person_name, |
| | | IFNULL(GROUP_CONCAT(DISTINCT es.`name` SEPARATOR ','), '') AS person_name, |
| | | iac.`check_time`, |
| | | iac.`start_time`, |
| | | iac.`end_time`, |
| | |
| | | FROM |
| | | `internal_audit_check` iac |
| | | LEFT JOIN sys_dept sd ON iac.dept_id = sd.dept_id |
| | | LEFT JOIN ex_student es on iac.person_id = es.id |
| | | LEFT JOIN ex_student es ON FIND_IN_SET(es.`id`, iac.`person_id`) |
| | | WHERE |
| | | iac.del_flag = 0 |
| | | <if test="companyId!=null"> |
| | | and iac.company_id = #{companyId} |
| | | </if> |
| | | GROUP BY iac.`id` |
| | | ORDER BY |
| | | iac.create_time DESC |
| | | </select> |