Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
fbee436d
Commit
fbee436d
authored
Jul 30, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
零时薪资单1
parent
3974d2b1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
577 additions
and
0 deletions
+577
-0
yd-api/src/main/java/com/yd/dal/entity/salary/AgAclSalary.java
+318
-0
yd-api/src/main/java/com/yd/dal/mapper/salary/AgAclSalaryMapper.java
+22
-0
yd-api/src/main/resources/mapper/salary/AgAclSalaryMapper.xml
+237
-0
No files found.
yd-api/src/main/java/com/yd/dal/entity/salary/AgAclSalary.java
0 → 100644
View file @
fbee436d
This diff is collapsed.
Click to expand it.
yd-api/src/main/java/com/yd/dal/mapper/salary/AgAclSalaryMapper.java
0 → 100644
View file @
fbee436d
package
com
.
yd
.
dal
.
mapper
.
salary
;
import
com.yd.dal.entity.salary.AgAclSalary
;
import
java.util.List
;
public
interface
AgAclSalaryMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AgAclSalary
record
);
int
insertSelective
(
AgAclSalary
record
);
AgAclSalary
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AgAclSalary
record
);
int
updateByPrimaryKey
(
AgAclSalary
record
);
List
<
AgAclSalary
>
queryListByPractitionerId
(
Long
practitionerId
);
}
\ No newline at end of file
yd-api/src/main/resources/mapper/salary/AgAclSalaryMapper.xml
0 → 100644
View file @
fbee436d
<?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=
"com.yd.dal.mapper.salary.AgAclSalaryMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.salary.AgAclSalary"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"practitioner_id"
jdbcType=
"BIGINT"
property=
"practitionerId"
/>
<result
column=
"practitioner_code"
jdbcType=
"VARCHAR"
property=
"practitionerCode"
/>
<result
column=
"year_month"
jdbcType=
"VARCHAR"
property=
"yearMonth"
/>
<result
column=
"salary_type"
jdbcType=
"INTEGER"
property=
"salaryType"
/>
<result
column=
"salary_code"
jdbcType=
"VARCHAR"
property=
"salaryCode"
/>
<result
column=
"salary_name"
jdbcType=
"VARCHAR"
property=
"salaryName"
/>
<result
column=
"amount"
jdbcType=
"DECIMAL"
property=
"amount"
/>
<result
column=
"tax"
jdbcType=
"DECIMAL"
property=
"tax"
/>
<result
column=
"after_tax_amount"
jdbcType=
"DECIMAL"
property=
"afterTaxAmount"
/>
<result
column=
"life_practitioner_salary_id"
jdbcType=
"BIGINT"
property=
"lifePractitionerSalaryId"
/>
<result
column=
"is_active"
jdbcType=
"INTEGER"
property=
"isActive"
/>
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"created_at"
jdbcType=
"TIMESTAMP"
property=
"createdAt"
/>
<result
column=
"created_by"
jdbcType=
"BIGINT"
property=
"createdBy"
/>
<result
column=
"updated_at"
jdbcType=
"TIMESTAMP"
property=
"updatedAt"
/>
<result
column=
"updated_by"
jdbcType=
"BIGINT"
property=
"updatedBy"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, practitioner_id, practitioner_code, `year_month`, salary_type, salary_code, salary_name,
amount, tax, after_tax_amount, life_practitioner_salary_id, is_active, remark, created_at,
created_by, updated_at, updated_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_salary
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ag_acl_salary
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.salary.AgAclSalary"
useGeneratedKeys=
"true"
>
insert into ag_acl_salary (practitioner_id, practitioner_code,
`year_month`, salary_type, salary_code,
salary_name, amount, tax,
after_tax_amount, life_practitioner_salary_id,
is_active, remark, created_at,
created_by, updated_at, updated_by
)
values (#{practitionerId,jdbcType=BIGINT}, #{practitionerCode,jdbcType=VARCHAR},
#{yearMonth,jdbcType=VARCHAR}, #{salaryType,jdbcType=INTEGER}, #{salaryCode,jdbcType=VARCHAR},
#{salaryName,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, #{tax,jdbcType=DECIMAL},
#{afterTaxAmount,jdbcType=DECIMAL}, #{lifePractitionerSalaryId,jdbcType=BIGINT},
#{isActive,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP},
#{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT}
)
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.salary.AgAclSalary"
useGeneratedKeys=
"true"
>
insert into ag_acl_salary
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"practitionerId != null"
>
practitioner_id,
</if>
<if
test=
"practitionerCode != null"
>
practitioner_code,
</if>
<if
test=
"yearMonth != null"
>
`year_month`,
</if>
<if
test=
"salaryType != null"
>
salary_type,
</if>
<if
test=
"salaryCode != null"
>
salary_code,
</if>
<if
test=
"salaryName != null"
>
salary_name,
</if>
<if
test=
"amount != null"
>
amount,
</if>
<if
test=
"tax != null"
>
tax,
</if>
<if
test=
"afterTaxAmount != null"
>
after_tax_amount,
</if>
<if
test=
"lifePractitionerSalaryId != null"
>
life_practitioner_salary_id,
</if>
<if
test=
"isActive != null"
>
is_active,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"createdAt != null"
>
created_at,
</if>
<if
test=
"createdBy != null"
>
created_by,
</if>
<if
test=
"updatedAt != null"
>
updated_at,
</if>
<if
test=
"updatedBy != null"
>
updated_by,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"practitionerId != null"
>
#{practitionerId,jdbcType=BIGINT},
</if>
<if
test=
"practitionerCode != null"
>
#{practitionerCode,jdbcType=VARCHAR},
</if>
<if
test=
"yearMonth != null"
>
#{yearMonth,jdbcType=VARCHAR},
</if>
<if
test=
"salaryType != null"
>
#{salaryType,jdbcType=INTEGER},
</if>
<if
test=
"salaryCode != null"
>
#{salaryCode,jdbcType=VARCHAR},
</if>
<if
test=
"salaryName != null"
>
#{salaryName,jdbcType=VARCHAR},
</if>
<if
test=
"amount != null"
>
#{amount,jdbcType=DECIMAL},
</if>
<if
test=
"tax != null"
>
#{tax,jdbcType=DECIMAL},
</if>
<if
test=
"afterTaxAmount != null"
>
#{afterTaxAmount,jdbcType=DECIMAL},
</if>
<if
test=
"lifePractitionerSalaryId != null"
>
#{lifePractitionerSalaryId,jdbcType=BIGINT},
</if>
<if
test=
"isActive != null"
>
#{isActive,jdbcType=INTEGER},
</if>
<if
test=
"remark != null"
>
#{remark,jdbcType=VARCHAR},
</if>
<if
test=
"createdAt != null"
>
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
#{createdBy,jdbcType=BIGINT},
</if>
<if
test=
"updatedAt != null"
>
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedBy != null"
>
#{updatedBy,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.salary.AgAclSalary"
>
update ag_acl_salary
<set>
<if
test=
"practitionerId != null"
>
practitioner_id = #{practitionerId,jdbcType=BIGINT},
</if>
<if
test=
"practitionerCode != null"
>
practitioner_code = #{practitionerCode,jdbcType=VARCHAR},
</if>
<if
test=
"yearMonth != null"
>
`year_month` = #{yearMonth,jdbcType=VARCHAR},
</if>
<if
test=
"salaryType != null"
>
salary_type = #{salaryType,jdbcType=INTEGER},
</if>
<if
test=
"salaryCode != null"
>
salary_code = #{salaryCode,jdbcType=VARCHAR},
</if>
<if
test=
"salaryName != null"
>
salary_name = #{salaryName,jdbcType=VARCHAR},
</if>
<if
test=
"amount != null"
>
amount = #{amount,jdbcType=DECIMAL},
</if>
<if
test=
"tax != null"
>
tax = #{tax,jdbcType=DECIMAL},
</if>
<if
test=
"afterTaxAmount != null"
>
after_tax_amount = #{afterTaxAmount,jdbcType=DECIMAL},
</if>
<if
test=
"lifePractitionerSalaryId != null"
>
life_practitioner_salary_id = #{lifePractitionerSalaryId,jdbcType=BIGINT},
</if>
<if
test=
"isActive != null"
>
is_active = #{isActive,jdbcType=INTEGER},
</if>
<if
test=
"remark != null"
>
remark = #{remark,jdbcType=VARCHAR},
</if>
<if
test=
"createdAt != null"
>
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
created_by = #{createdBy,jdbcType=BIGINT},
</if>
<if
test=
"updatedAt != null"
>
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedBy != null"
>
updated_by = #{updatedBy,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.salary.AgAclSalary"
>
update ag_acl_salary
set practitioner_id = #{practitionerId,jdbcType=BIGINT},
practitioner_code = #{practitionerCode,jdbcType=VARCHAR},
`year_month` = #{yearMonth,jdbcType=VARCHAR},
salary_type = #{salaryType,jdbcType=INTEGER},
salary_code = #{salaryCode,jdbcType=VARCHAR},
salary_name = #{salaryName,jdbcType=VARCHAR},
amount = #{amount,jdbcType=DECIMAL},
tax = #{tax,jdbcType=DECIMAL},
after_tax_amount = #{afterTaxAmount,jdbcType=DECIMAL},
life_practitioner_salary_id = #{lifePractitionerSalaryId,jdbcType=BIGINT},
is_active = #{isActive,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
updated_by = #{updatedBy,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"queryListByPractitionerId"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select * from ag_acl_salary
where practitioner_id = #{practitionerId,jdbcType=BIGINT}
</select>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment