680 changed files with 4327 additions and 810 deletions
@ -1,6 +0,0 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||
<project version="4"> |
|
||||
<component name="SqlDialectMappings"> |
|
||||
<file url="file://$PROJECT_DIR$/yun-admin/src/main/java/net/lab1024/sa/admin/module/letter/sql/LetterMenu.sql" dialect="GenericSQL" /> |
|
||||
</component> |
|
||||
</project> |
|
||||
@ -0,0 +1,54 @@ |
|||||
|
package net.lab1024.sa.admin.module.service.domain.form; |
||||
|
|
||||
|
import com.alibaba.excel.annotation.ExcelProperty; |
||||
|
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
/** |
||||
|
* 活动明细导出表单 |
||||
|
* |
||||
|
* @Author wzh |
||||
|
* @Date 2025-12-22 |
||||
|
* @Copyright 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ActivityDetailExportForm { |
||||
|
|
||||
|
@ExcelProperty("备案编号") |
||||
|
private String recordNo; |
||||
|
|
||||
|
@ExcelProperty("律师姓名") |
||||
|
private String userName; |
||||
|
|
||||
|
@ExcelProperty("律所名称") |
||||
|
private String departmentName; |
||||
|
|
||||
|
@ExcelProperty("活动名称") |
||||
|
private String activityName; |
||||
|
|
||||
|
@ExcelProperty("服务开始时间") |
||||
|
@ColumnWidth(value = 25) |
||||
|
private LocalDateTime serviceStart; |
||||
|
|
||||
|
@ExcelProperty("服务结束时间") |
||||
|
@ColumnWidth(value = 25) |
||||
|
private LocalDateTime serviceEnd; |
||||
|
|
||||
|
@ExcelProperty("服务时长(小时)") |
||||
|
private Double serviceDuration; |
||||
|
|
||||
|
@ExcelProperty("受益人数") |
||||
|
private Integer beneficiaryCount; |
||||
|
|
||||
|
@ExcelProperty("组织单位") |
||||
|
private String organizerName; |
||||
|
|
||||
|
@ExcelProperty("负责人") |
||||
|
private String organizerContact; |
||||
|
|
||||
|
@ExcelProperty("联系方式") |
||||
|
private String organizerPhone; |
||||
|
} |
||||
File diff suppressed because it is too large
@ -0,0 +1,131 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="net.lab1024.sa.admin.module.cost.dao.FirmReportsDao"> |
||||
|
|
||||
|
<!-- 查询结果列 --> |
||||
|
<sql id="base_columns"> |
||||
|
t_firm_reports.id, |
||||
|
t_firm_reports.firm_id as firmId, |
||||
|
t_firm_reports.user_id as userId, |
||||
|
t_firm_reports.declare_year as declareYear, |
||||
|
t_firm_reports.declare_quarter as declareQuarter, |
||||
|
t_firm_reports.revenue as revenue, |
||||
|
t_firm_reports.total_cost as totalCost, |
||||
|
t_firm_reports.public_welfare_cost as publicWelfareCost, |
||||
|
t_firm_reports.cost_income_ratio as costIncomeRatio, |
||||
|
t_firm_reports.actual_public_welfare_cost as actualPublicWelfareCost, |
||||
|
t_firm_reports.actual_cost_income_ratio as actualCostIncomeRatio, |
||||
|
t_firm_reports.approval_status as approvalStatus, |
||||
|
t_firm_reports.submission_time as submissionTime, |
||||
|
t_firm_reports.approver_id as approverId, |
||||
|
t_firm_reports.create_time as createTime, |
||||
|
t_firm_reports.update_time as updateTime, |
||||
|
t_firm_reports.del_flag as delFlag, |
||||
|
t_firm_reports.declare_month as declareMonth |
||||
|
</sql> |
||||
|
<update id="commit"> |
||||
|
UPDATE t_firm_reports |
||||
|
SET approval_status = 3 |
||||
|
WHERE id IN |
||||
|
<foreach item="item" collection="list" separator="," open="(" close=")" index=""> |
||||
|
#{item} |
||||
|
</foreach> |
||||
|
</update> |
||||
|
|
||||
|
<!-- 批量驳回 --> |
||||
|
<update id="reject"> |
||||
|
UPDATE t_firm_reports |
||||
|
SET approval_status = 0 |
||||
|
WHERE id IN |
||||
|
<foreach item="item" collection="list" separator="," open="(" close=")" index=""> |
||||
|
#{item} |
||||
|
</foreach> |
||||
|
</update> |
||||
|
|
||||
|
<!-- 分页查询 --> |
||||
|
<select id="queryPage" resultType="net.lab1024.sa.admin.module.cost.domain.vo.FirmReportsVO"> |
||||
|
SELECT |
||||
|
<include refid="base_columns"/> |
||||
|
FROM t_firm_reports |
||||
|
<where> |
||||
|
del_flag = 0 |
||||
|
<if test="queryForm.firmId != null and queryForm.firmId != ''"> |
||||
|
AND t_firm_reports.firm_id = #{queryForm.firmId} |
||||
|
</if> |
||||
|
<if test="queryForm.includeSubmitted != null and queryForm.includeSubmitted and queryForm.userId != null"> |
||||
|
AND (t_firm_reports.approval_status >= 3 OR t_firm_reports.user_id = #{queryForm.userId}) |
||||
|
</if> |
||||
|
<if test="queryForm.includeSubmitted != null and queryForm.includeSubmitted and (queryForm.userId == null or queryForm.userId == '')"> |
||||
|
AND t_firm_reports.approval_status >= 0 |
||||
|
</if> |
||||
|
<if test="queryForm.userId != null and (queryForm.includeSubmitted == null or queryForm.includeSubmitted == false)"> |
||||
|
AND t_firm_reports.user_id = #{queryForm.userId} |
||||
|
</if> |
||||
|
<if test="queryForm.declareYear != null"> |
||||
|
AND t_firm_reports.declare_year = #{queryForm.declareYear} |
||||
|
</if> |
||||
|
<if test="queryForm.declareQuarter != null"> |
||||
|
AND t_firm_reports.declare_quarter = #{queryForm.declareQuarter} |
||||
|
</if> |
||||
|
<if test="queryForm.declareMonth != null"> |
||||
|
AND t_firm_reports.declare_month = #{queryForm.declareMonth} |
||||
|
</if> |
||||
|
<if test="queryForm.approvalStatus != null"> |
||||
|
AND t_firm_reports.approval_status = #{queryForm.approvalStatus} |
||||
|
</if> |
||||
|
</where> |
||||
|
ORDER BY t_firm_reports.update_time DESC |
||||
|
</select> |
||||
|
|
||||
|
<!-- 根据季度、年度和律所 ID 查询报表 --> |
||||
|
<select id="selectList" resultType="net.lab1024.sa.admin.module.cost.domain.entity.FirmReportsEntity"> |
||||
|
SELECT * |
||||
|
FROM t_firm_reports |
||||
|
WHERE del_flag = 0 |
||||
|
AND declare_quarter = #{declareQuarter} |
||||
|
AND declare_year = #{declareYear} |
||||
|
AND firm_id = #{firmId} |
||||
|
LIMIT 1 |
||||
|
</select> |
||||
|
<select id="query" resultType="java.lang.Boolean"> |
||||
|
SELECT |
||||
|
CASE WHEN EXISTS( |
||||
|
SELECT 1 |
||||
|
FROM t_firm_reports |
||||
|
WHERE del_flag = 0 and approval_status = 3 |
||||
|
AND declare_quarter = #{currentQuarter} |
||||
|
AND declare_year = #{currentYear} |
||||
|
AND firm_id = #{departmentId} |
||||
|
) THEN true ELSE false END |
||||
|
</select> |
||||
|
<select id="firmReportsCost" resultType="java.lang.Long"> |
||||
|
SELECT ifnull(SUM(total_cost),0) |
||||
|
FROM t_firm_reports |
||||
|
WHERE del_flag = 0 and approval_status = 3 |
||||
|
AND declare_year = #{currentYear} |
||||
|
AND firm_id = #{departmentId} |
||||
|
</select> |
||||
|
<select id="income" resultType="net.lab1024.sa.admin.module.cost.domain.vo.FirmReportsCountVO"> |
||||
|
SELECT |
||||
|
SUM(revenue) as revenue, |
||||
|
SUM(total_cost) as totalCost |
||||
|
FROM t_firm_reports |
||||
|
WHERE del_flag = 0 and approval_status = 3 |
||||
|
AND declare_year = #{currentYear} |
||||
|
AND firm_id = #{departmentId} |
||||
|
</select> |
||||
|
|
||||
|
<!-- 根据律所ID、年份和季度查询成本管理表记录 --> |
||||
|
<select id="selectByFirmIdYearAndQuarter" resultType="net.lab1024.sa.admin.module.cost.domain.entity.FirmReportsEntity"> |
||||
|
SELECT |
||||
|
* |
||||
|
FROM |
||||
|
t_firm_reports |
||||
|
WHERE |
||||
|
del_flag = 0 |
||||
|
AND firm_id = #{firmId} |
||||
|
AND declare_year = #{year} |
||||
|
AND declare_quarter = #{quarter} |
||||
|
</select> |
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,80 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="net.lab1024.sa.admin.module.penalty.dao.PenaltyApplyDao"> |
||||
|
|
||||
|
<!-- 查询结果列 --> |
||||
|
<sql id="base_columns"> |
||||
|
t_penalty_apply.id, |
||||
|
t_penalty_apply.user_id, |
||||
|
t_penalty_apply.apply_date, |
||||
|
t_penalty_apply.use_purpose, |
||||
|
t_penalty_apply.status, |
||||
|
t_penalty_apply.create_time, |
||||
|
t_penalty_apply.update_time, |
||||
|
t_penalty_apply.deleted_flag, |
||||
|
t_penalty_apply.department_id, |
||||
|
t_penalty_apply.audit_status, |
||||
|
t_penalty_apply.type, |
||||
|
t_penalty_apply.apply_type |
||||
|
</sql> |
||||
|
|
||||
|
<!-- 分页查询 --> |
||||
|
<select id="queryPage" resultType="net.lab1024.sa.admin.module.penalty.domain.vo.PenaltyApplyVO"> |
||||
|
SELECT |
||||
|
tp_apply.id, |
||||
|
tp_apply.user_id as userId, |
||||
|
tp_apply.apply_date as applyDate, |
||||
|
tp_apply.use_purpose as usePurpose, |
||||
|
tp_apply.status as status, |
||||
|
tp_apply.create_time as createTime, |
||||
|
tp_apply.update_time as updateTime, |
||||
|
tp_apply.deleted_flag as deletedFlag, |
||||
|
tp_apply.audit_status as auditStatus, |
||||
|
tp_apply.department_id as departmentId, |
||||
|
tp_apply.type, |
||||
|
tp_apply.apply_type as applyType, |
||||
|
te_employee.actual_name AS userName |
||||
|
FROM t_penalty_apply tp_apply left join t_employee te_employee on tp_apply.user_id = te_employee.employee_id |
||||
|
<where> |
||||
|
tp_apply.deleted_flag = 0 |
||||
|
<if test="queryForm != null"> |
||||
|
<if test="queryForm.userName != null and queryForm.userName != ''"> |
||||
|
AND te_employee.actual_name like concat('%',#{queryForm.userName},'%') |
||||
|
</if> |
||||
|
<if test="queryForm.status != null and queryForm.status != ''"> |
||||
|
AND tp_apply.status = #{queryForm.status} |
||||
|
</if> |
||||
|
<if test="queryForm.applyDateStart != null"> |
||||
|
AND tp_apply.apply_date >= #{queryForm.applyDateStart} |
||||
|
</if> |
||||
|
<if test="queryForm.applyDateEnd != null"> |
||||
|
AND tp_apply.apply_date <= #{queryForm.applyDateEnd} |
||||
|
</if> |
||||
|
<if test="queryForm.userId != null"> |
||||
|
AND tp_apply.user_id = #{queryForm.userId} |
||||
|
</if> |
||||
|
<if test="queryForm.departmentId != null"> |
||||
|
AND tp_apply.department_id = #{queryForm.departmentId} |
||||
|
</if> |
||||
|
<if test="queryForm.userType == 'ceo' "> |
||||
|
AND tp_apply.audit_status > 0 |
||||
|
</if> |
||||
|
</if> |
||||
|
</where> |
||||
|
ORDER BY tp_apply.status, tp_apply.create_time DESC |
||||
|
</select> |
||||
|
|
||||
|
<update id="batchUpdateDeleted"> |
||||
|
update t_penalty_apply set deleted_flag = #{deletedFlag} |
||||
|
where id in |
||||
|
<foreach collection="idList" open="(" close=")" separator="," item="item"> |
||||
|
#{item} |
||||
|
</foreach> |
||||
|
</update> |
||||
|
|
||||
|
<update id="updateDeleted"> |
||||
|
update t_penalty_apply set deleted_flag = #{deletedFlag} |
||||
|
where id = #{id} |
||||
|
</update> |
||||
|
|
||||
|
</mapper> |
||||
@ -0,0 +1,45 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="net.lab1024.sa.admin.module.penalty.dao.PenaltyLawyerDao"> |
||||
|
|
||||
|
<!-- 查询结果列 --> |
||||
|
<sql id="base_columns"> |
||||
|
t_penalty_lawyer.id, |
||||
|
t_penalty_lawyer.name, |
||||
|
t_penalty_lawyer.principal, |
||||
|
t_penalty_lawyer.license_no, |
||||
|
t_penalty_lawyer.phone, |
||||
|
t_penalty_lawyer.address, |
||||
|
t_penalty_lawyer.unified_credit_code, |
||||
|
t_penalty_lawyer.governing_body, |
||||
|
t_penalty_lawyer.organizational_form, |
||||
|
t_penalty_lawyer.branch_form, |
||||
|
t_penalty_lawyer.party_member_count, |
||||
|
t_penalty_lawyer.party_organization_name, |
||||
|
t_penalty_lawyer.party_organization_form, |
||||
|
t_penalty_lawyer.party_branch_principal, |
||||
|
t_penalty_lawyer.city, |
||||
|
t_penalty_lawyer.district, |
||||
|
t_penalty_lawyer.created_at, |
||||
|
t_penalty_lawyer.updated_at |
||||
|
</sql> |
||||
|
|
||||
|
<!-- 分页查询 --> |
||||
|
<select id="queryPage" resultType="net.lab1024.sa.admin.module.penalty.domain.vo.PenaltyLawyerVO"> |
||||
|
SELECT |
||||
|
<include refid="base_columns"/> |
||||
|
FROM t_penalty_lawyer |
||||
|
</select> |
||||
|
<select id="selectLawyerPunishList" resultType="com.alibaba.fastjson.JSONObject"> |
||||
|
select * |
||||
|
from t_lawyer_punish_people |
||||
|
where name = #{licenseNo} and punish_time >= DATE_SUB(CURDATE(), INTERVAL 5 YEAR) |
||||
|
</select> |
||||
|
<select id="queryNoName" resultType="com.alibaba.fastjson.JSONObject"> |
||||
|
select * |
||||
|
from t_lawyer_punish_people |
||||
|
where name is null and dept_name = #{departmentName} and punish_time >= DATE_SUB(CURDATE(), INTERVAL 5 YEAR) |
||||
|
</select> |
||||
|
|
||||
|
|
||||
|
</mapper> |
||||
File diff suppressed because it is too large
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue