Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
8timerv2
8timerapiv200
Commits
815aa215
Commit
815aa215
authored
Oct 16, 2020
by
ilal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
2cd47022
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
44 additions
and
64 deletions
+44
-64
src/main/java/cn/timer/api/bean/xcgl/XcglAdminXzz.java
+2
-1
src/main/java/cn/timer/api/bean/xcgl/XcglAssoJsgzzx.java
+4
-0
src/main/java/cn/timer/api/bean/xcgl/XcglAssoXcjsgz.java
+4
-0
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
+0
-0
src/main/java/cn/timer/api/dao/xcgl/XcglAssoXzbMapper.java
+1
-1
src/main/java/cn/timer/api/dto/xcgl/ModifysalaryruleDto.java
+19
-0
src/main/resources/mapping/xcgl/XcglAdminXzzMapper.xml
+1
-1
src/main/resources/mapping/xcgl/XcglAssoJsgzzxMapper.xml
+11
-59
src/main/resources/mapping/xcgl/XcglAssoXcjsgzMapper.xml
+1
-0
src/main/resources/mapping/xcgl/XcglAssoXzbMapper.xml
+1
-2
No files found.
src/main/java/cn/timer/api/bean/xcgl/XcglAdminXzz.java
View file @
815aa215
...
...
@@ -75,7 +75,7 @@ public class XcglAdminXzz extends Model<XcglAdminXzz> {
private
String
monthtime
;
@ApiModelProperty
(
value
=
"算薪月份"
,
example
=
"2019-12"
)
private
String
salarymonth
;
private
String
xzyf
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/xcgl/XcglAssoJsgzzx.java
View file @
815aa215
...
...
@@ -78,4 +78,7 @@ public class XcglAssoJsgzzx extends Model<XcglAssoJsgzzx> {
@ApiModelProperty
(
value
=
"薪资选项id"
,
example
=
"薪资选项id"
)
private
Integer
optionid
;
@ApiModelProperty
(
value
=
"是否自定义项(0:否;1:是)"
,
example
=
"0"
)
private
Integer
isCustom
;
}
\ No newline at end of file
src/main/java/cn/timer/api/bean/xcgl/XcglAssoXcjsgz.java
View file @
815aa215
...
...
@@ -53,5 +53,8 @@ public class XcglAssoXcjsgz extends Model<XcglAssoXcjsgz> {
@ApiModelProperty
(
value
=
"类型(1:迟到早退扣款;2:事假扣款;3:病假扣款;4:入离职缺勤扣款;5:司龄;6:旷工扣款;7:加班费;8:司龄工资;9:应出勤天数;10:入离职缺勤天数;11:应发工资;12:个税;13:实发工资)"
)
private
Integer
type
;
@ApiModelProperty
(
value
=
""
,
example
=
""
)
private
Integer
optionid
;
}
\ No newline at end of file
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
View file @
815aa215
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/dao/xcgl/XcglAssoXzbMapper.java
View file @
815aa215
...
...
@@ -20,7 +20,7 @@ public interface XcglAssoXzbMapper extends BaseMapper<XcglAssoXzb> {
int
deleteByuserid
(
int
userid
,
int
xzzid
,
String
xzyf
);
List
<
CalculationDto
>
CalculationResults
(
int
xzzid
,
String
xzyf
,
int
orgcode
);
List
<
CalculationDto
>
CalculationResults
(
int
xzzid
,
int
orgcode
);
int
deleteByAttendance
(
int
userid
,
int
xzzid
,
String
xzyf
);
...
...
src/main/java/cn/timer/api/dto/xcgl/ModifysalaryruleDto.java
0 → 100644
View file @
815aa215
package
cn
.
timer
.
api
.
dto
.
xcgl
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
ModifysalaryruleDto
{
private
Integer
jsgzzxid
;
// 计薪规则组项id
private
Integer
xcjsgzid
;
// 薪酬计算规则公式id
private
String
formula
;
// 公式
}
src/main/resources/mapping/xcgl/XcglAdminXzzMapper.xml
View file @
815aa215
...
...
@@ -16,7 +16,7 @@
<result
column=
"qyid"
property=
"qyid"
/>
<result
column=
"pxfs"
property=
"pxfs"
/>
<result
column=
"monthtime"
property=
"monthtime"
/>
<result
column=
"
salarymonth"
property=
"salarymonth
"
/>
<result
column=
"
xzyf"
property=
"xzyf
"
/>
</resultMap>
<resultMap
id=
"PayrollExceptionDtoMap"
type=
"cn.timer.api.dto.xcgl.PayrollExceptionDto"
>
...
...
src/main/resources/mapping/xcgl/XcglAssoJsgzzxMapper.xml
View file @
815aa215
...
...
@@ -18,6 +18,7 @@
<result
column=
"xzzid"
property=
"xzzid"
/>
<result
column=
"rulestate"
property=
"rulestate"
/>
<result
column=
"optionid"
property=
"optionid"
/>
<result
column=
"is_custom"
property=
"isCustom"
/>
</resultMap>
...
...
@@ -39,40 +40,6 @@
<result
column=
"salaryitem"
property=
"salaryitem"
/>
<result
column=
"rsz"
property=
"rsz"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
salaryitem,
yhmbzd,
rule,
type,
addtime,
adduserid,
jxgzid,
remarks,
gsid,
gsgs,
xzzid,
rulestate,
optionid
</sql>
<sql
id=
"Base_Column_List_Alias"
>
id XcglAssoJsgzzx_id,
salaryitem XcglAssoJsgzzx_salaryitem,
yhmbzd XcglAssoJsgzzx_yhmbzd,
rule XcglAssoJsgzzx_rule,
type XcglAssoJsgzzx_type,
addtime XcglAssoJsgzzx_addtime,
adduserid XcglAssoJsgzzx_adduserid,
jxgzid XcglAssoJsgzzx_jxgzid,
remarks XcglAssoJsgzzx_remarks,
gsid XcglAssoJsgzzx_gsid,
gsgs XcglAssoJsgzzx_gsgs,
xzzid XcglAssoJsgzzx_xzzid,
rulestate XcglAssoJsgzzx_rulestate,
optionid XcglAssoJsgzzx_optionid
</sql>
<select
id=
"selectSalarySectionList"
resultMap=
"BaseResultMap"
>
select jsgzzx.* from xcgl_asso_jsgzzx jsgzzx
...
...
@@ -203,7 +170,10 @@
rulestate,
</if>
<if
test =
'null != optionid'
>
optionid
optionid,
</if>
<if
test =
'null != isCustom'
>
is_custom
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -244,7 +214,10 @@
#{rulestate},
</if>
<if
test =
'null != optionid'
>
#{optionid}
#{optionid},
</if>
<if
test =
'null != isCustom'
>
#{isCustom}
</if>
</trim>
</insert>
...
...
@@ -264,32 +237,12 @@
<if
test =
'null != gsgs'
>
gsgs = #{gsgs},
</if>
<if
test =
'null != xzzid'
>
xzzid = #{xzzid},
</if>
<if
test =
'null != rulestate'
>
rulestate = #{rulestate},
</if>
<if
test =
'null != optionid'
>
optionid = #{optionid}
</if>
<if
test =
'null != optionid'
>
optionid = #{optionid},
</if>
<if
test =
'null != optionid'
>
is_custom = #{isCustom}
</if>
</set>
WHERE id = #{id}
</update>
<!-- <delete id="delete" >
DELETE FROM xcgl_asso_jsgzzx
WHERE id = #{id}
</delete>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM xcgl_asso_jsgzzx
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM xcgl_asso_jsgzzx
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM xcgl_asso_jsgzzx
</select> -->
</mapper>
\ No newline at end of file
src/main/resources/mapping/xcgl/XcglAssoXcjsgzMapper.xml
View file @
815aa215
...
...
@@ -10,6 +10,7 @@
<result
column=
"dygk"
property=
"dygk"
/>
<result
column=
"degk"
property=
"degk"
/>
<result
column=
"type"
property=
"type"
/>
<result
column=
"optionid"
property=
"optionid"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
...
...
src/main/resources/mapping/xcgl/XcglAssoXzbMapper.xml
View file @
815aa215
...
...
@@ -74,8 +74,7 @@
left join zzgl_bmgw_m um on um.id = m.up_id
) as bmgw on bmgw.mid = emp.bmgw_id
where emp.emp_num in (select xzury.userid from xcgl_asso_xzury xzury where xzury.xzzid = #{xzzid})
and xzbs.xzyf = #{xzyf} or xzbs.xzyf = ''
and emp.emp_num in (select xzury.userid from xcgl_asso_xzury xzury where xzury.xzzid = #{xzzid})
and xzbs.xzyf = (select xzz.xzyf from xcgl_admin_xzz xzz where xzz.id = #{xzzid})
) as aa
where aa.orgcode = #{orgcode}
</select>
...
...
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