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
3e2c1b45
Commit
3e2c1b45
authored
May 14, 2022
by
翁国栋
Committed by
284718418@qq.com
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时后台--
合同页面-列表查询问题
parent
0c91ae54
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
132 additions
and
51 deletions
+132
-51
src/main/java/cn/timer/api/controller/zpgl/ZpglController.java
+15
-0
src/main/java/cn/timer/api/dao/yggl/YgglAttaHtxxbMapper.java
+3
-1
src/main/java/cn/timer/api/dto/yggl/HtgkDto.java
+6
-0
src/main/java/cn/timer/api/dto/zpgl/ZpglRcxxDto.java
+6
-1
src/main/resources/mapping/yggl/YgglAttaHtxxbMapper.xml
+102
-49
No files found.
src/main/java/cn/timer/api/controller/zpgl/ZpglController.java
View file @
3e2c1b45
...
@@ -5,6 +5,7 @@ import cn.timer.api.bean.kqgl.UserEquiRelation;
...
@@ -5,6 +5,7 @@ import cn.timer.api.bean.kqgl.UserEquiRelation;
import
cn.timer.api.bean.kqmk.*
;
import
cn.timer.api.bean.kqmk.*
;
import
cn.timer.api.bean.qyzx.QyzxEmpEntAsso
;
import
cn.timer.api.bean.qyzx.QyzxEmpEntAsso
;
import
cn.timer.api.bean.qyzx.QyzxEmpLogin
;
import
cn.timer.api.bean.qyzx.QyzxEmpLogin
;
import
cn.timer.api.bean.qyzx.businessService.QyzxOrderRecord
;
import
cn.timer.api.bean.spmk.SpmkCustomApproval
;
import
cn.timer.api.bean.spmk.SpmkCustomApproval
;
import
cn.timer.api.bean.wechat.MessageTemplate
;
import
cn.timer.api.bean.wechat.MessageTemplate
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
...
@@ -35,6 +36,7 @@ import cn.timer.api.utils.ZpglMessageTemplate;
...
@@ -35,6 +36,7 @@ import cn.timer.api.utils.ZpglMessageTemplate;
import
cn.timer.api.utils.query.BaseQuery
;
import
cn.timer.api.utils.query.BaseQuery
;
import
cn.timer.api.config.enuminterface.YgEnumInterface.jobStatus
;
import
cn.timer.api.config.enuminterface.YgEnumInterface.jobStatus
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper
;
import
com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
@@ -205,6 +207,7 @@ public class ZpglController {
...
@@ -205,6 +207,7 @@ public class ZpglController {
}
}
}
}
/**
/**
* 添加员工档案
* 添加员工档案
*
*
...
@@ -774,5 +777,17 @@ public class ZpglController {
...
@@ -774,5 +777,17 @@ public class ZpglController {
}
}
}
}
@PostMapping
(
value
=
"/editInfo"
)
@ApiOperation
(
value
=
"14.招聘-变更基础信息"
,
httpMethod
=
"POST"
,
notes
=
"招聘-变更人才信息状态"
)
@ApiOperationSupport
(
order
=
3
)
public
Result
<
Object
>
editInfo
(
@CurrentUser
UserBean
userBean
,
@RequestBody
ZpglRcxxDto
zpglRcxxDto
)
{
try
{
boolean
re
=
ZpglRcxx
.
builder
().
name
(
zpglRcxxDto
.
getName
()).
mobile
(
zpglRcxxDto
.
getMobile
()).
mail
(
zpglRcxxDto
.
getMail
()).
build
().
update
(
new
LambdaUpdateWrapper
<
ZpglRcxx
>().
eq
(
ZpglRcxx:
:
getId
,
zpglRcxxDto
.
getId
()));
return
re
?
ResultUtil
.
success
(
"修改成功"
):
ResultUtil
.
error
(
"修改成功"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
CustomException
(
"招聘-修改成功"
);
}
}
}
}
src/main/java/cn/timer/api/dao/yggl/YgglAttaHtxxbMapper.java
View file @
3e2c1b45
package
cn
.
timer
.
api
.
dao
.
yggl
;
package
cn
.
timer
.
api
.
dao
.
yggl
;
import
cn.timer.api.dto.yggl.HtgkDto
;
import
cn.timer.api.dto.yggl.HtgkDto
;
import
cn.timer.api.utils.Page
;
import
io.swagger.models.auth.In
;
import
io.swagger.models.auth.In
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
...
@@ -19,7 +20,8 @@ public interface YgglAttaHtxxbMapper extends BaseMapper<YgglAttaHtxxb> {
...
@@ -19,7 +20,8 @@ public interface YgglAttaHtxxbMapper extends BaseMapper<YgglAttaHtxxb> {
List
<
HtgkDto
>
queryContract
(
@Param
(
"orgCode"
)
Integer
orgCode
);
List
<
HtgkDto
>
queryContract
(
@Param
(
"orgCode"
)
Integer
orgCode
);
List
<
HtgkDto
>
selectListByType
(
@Param
(
"type"
)
Integer
type
);
List
<
HtgkDto
>
selectListByType
(
@Param
(
"type"
)
Integer
type
,
@Param
(
"page"
)
Page
page
,
@Param
(
"orgCode"
)
Integer
orgCode
);
Integer
selectTotalByType
(
@Param
(
"type"
)
Integer
type
,
@Param
(
"orgCode"
)
Integer
orgCode
);
...
...
src/main/java/cn/timer/api/dto/yggl/HtgkDto.java
View file @
3e2c1b45
package
cn
.
timer
.
api
.
dto
.
yggl
;
package
cn
.
timer
.
api
.
dto
.
yggl
;
import
cn.timer.api.utils.Page
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Builder
;
...
@@ -42,4 +43,9 @@ public class HtgkDto implements Serializable{
...
@@ -42,4 +43,9 @@ public class HtgkDto implements Serializable{
private
Date
statTime
;
private
Date
statTime
;
private
Date
endTime
;
private
Date
endTime
;
private
Integer
empNum
;
private
Integer
empNum
;
private
Page
page
;
private
Integer
bmgwId
;
private
String
query
;
private
Integer
htType
;
}
}
src/main/java/cn/timer/api/dto/zpgl/ZpglRcxxDto.java
View file @
3e2c1b45
...
@@ -24,7 +24,7 @@ import java.util.List;
...
@@ -24,7 +24,7 @@ import java.util.List;
@NoArgsConstructor
@NoArgsConstructor
@AllArgsConstructor
@AllArgsConstructor
public
class
ZpglRcxxDto
implements
Serializable
{
public
class
ZpglRcxxDto
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
1230023773946171911L
;
private
static
final
long
serialVersionUID
=
-
1230023773946171911L
;
/**
/**
...
@@ -120,4 +120,9 @@ public class ZpglRcxxDto implements Serializable{
...
@@ -120,4 +120,9 @@ public class ZpglRcxxDto implements Serializable{
@ApiModelProperty
(
value
=
"创建时间"
)
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
private
Date
createTime
;
@ApiModelProperty
(
value
=
"电话"
)
private
String
mobile
;
@ApiModelProperty
(
value
=
"邮箱"
)
private
String
mail
;
}
}
src/main/resources/mapping/yggl/YgglAttaHtxxbMapper.xml
View file @
3e2c1b45
...
@@ -3,28 +3,29 @@
...
@@ -3,28 +3,29 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.yggl.YgglAttaHtxxbMapper"
>
<mapper
namespace=
"cn.timer.api.dao.yggl.YgglAttaHtxxbMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.yggl.YgglAttaHtxxb"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.timer.api.bean.yggl.YgglAttaHtxxb"
>
<id
column=
"id"
property=
"id"
/>
<id
column=
"id"
property=
"id"
/>
<id
column=
"id"
property=
"id"
/>
<id
column=
"id"
property=
"id"
/>
<result
column=
"emp_num"
property=
"empNum"
/>
<result
column=
"emp_num"
property=
"empNum"
/>
<result
column=
"ht_id"
property=
"htId"
/>
<result
column=
"ht_id"
property=
"htId"
/>
<result
column=
"ht_name"
property=
"htName"
/>
<result
column=
"ht_name"
property=
"htName"
/>
<result
column=
"type"
property=
"type"
/>
<result
column=
"type"
property=
"type"
/>
<result
column=
"qd_date"
property=
"qdDate"
/>
<result
column=
"qd_date"
property=
"qdDate"
/>
<result
column=
"start_time"
property=
"startTime"
/>
<result
column=
"start_time"
property=
"startTime"
/>
<result
column=
"end_time"
property=
"endTime"
/>
<result
column=
"end_time"
property=
"endTime"
/>
<result
column=
"htqygs"
property=
"htqygs"
/>
<result
column=
"htqygs"
property=
"htqygs"
/>
<result
column=
"status"
property=
"status"
/>
<result
column=
"status"
property=
"status"
/>
<result
column=
"remark"
property=
"remark"
/>
<result
column=
"remark"
property=
"remark"
/>
<result
column=
"org_code"
property=
"orgCode"
/>
<result
column=
"org_code"
property=
"orgCode"
/>
<result
column=
"jc_status"
property=
"jcStatus"
/>
<result
column=
"jc_status"
property=
"jcStatus"
/>
<result
column=
"jc_date"
property=
"jcDate"
/>
<result
column=
"jc_date"
property=
"jcDate"
/>
<result
column=
"htfj"
property=
"htfj"
/>
<result
column=
"htfj"
property=
"htfj"
/>
<result
column=
"delete_flag"
property=
"deleteFlag"
/>
<result
column=
"delete_flag"
property=
"deleteFlag"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id,
id
,
emp_num,
emp_num,
ht_id,
ht_id,
ht_name,
ht_name,
...
@@ -42,7 +43,7 @@
...
@@ -42,7 +43,7 @@
htfj,
htfj,
delete_flag
delete_flag
</sql>
</sql>
<!--
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.yggl.YgglAttaHtxxb">
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.yggl.YgglAttaHtxxb">
INSERT INTO yggl_atta_htxxb
INSERT INTO yggl_atta_htxxb
...
@@ -152,42 +153,94 @@
...
@@ -152,42 +153,94 @@
FROM yggl_atta_htxxb
FROM yggl_atta_htxxb
</select>
</select>
-->
-->
<select
id=
"queryContract"
resultType=
"cn.timer.api.dto.yggl.HtgkDto"
>
<select
id=
"queryContract"
resultType=
"cn.timer.api.dto.yggl.HtgkDto"
>
SELECT
SELECT zc.company_name companyName,
zc.company_name companyName,
(SELECT SUM(job_status BETWEEN 0 and 3) AS probation
(SELECT SUM(job_status BETWEEN 0 and 3) AS probation FROM yggl_main_emp WHERE org_code = #{orgCode}) as probation,
FROM yggl_main_emp
(SELECT count(DISTINCT emp_num) AS signCount FROM yggl_atta_htxxb AS yah WHERE org_code = #{orgCode} AND zc.id=yah.htqygs
WHERE org_code = #{orgCode}) as probation,
AND yah.jc_status=0 AND yah.delete_flag=0 AND yah.status=0
(SELECT count(DISTINCT emp_num) AS signCount
) as signCount,
FROM yggl_atta_htxxb AS yah
(SELECT count(DISTINCT emp_num) AS signCount FROM yggl_atta_htxxb AS yah WHERE org_code = #{orgCode} AND zc.id=yah.htqygs
WHERE org_code = #{orgCode}
AND yah.jc_status=0 AND yah.delete_flag=0 AND yah.status=0
AND zc.id = yah.htqygs
and yah.end_time between NOW() AND DATE_FORMAT(DATE_add(NOW(),INTERVAL 5 DAY),'%Y-%m-%d')
AND yah.jc_status = 0
) as due_soon
AND yah.delete_flag = 0
AND yah.status = 0
) as signCount,
(SELECT count(DISTINCT emp_num) AS signCount
FROM yggl_atta_htxxb AS yah
WHERE org_code = #{orgCode}
AND zc.id = yah.htqygs
AND yah.jc_status = 0
AND yah.delete_flag = 0
AND yah.status = 0
and yah.end_time between NOW() AND DATE_FORMAT(DATE_add(NOW(), INTERVAL 5 DAY), '%Y-%m-%d')
) as due_soon
FROM `zpgl_company` zc
FROM `zpgl_company` zc
where zc.org_code =#{orgCode}
</select>
</select>
<select
id=
"selectListByType"
resultType=
"cn.timer.api.dto.yggl.HtgkDto"
>
<select
id=
"selectListByType"
resultType=
"cn.timer.api.dto.yggl.HtgkDto"
>
SELECT
SELECT
yh.id as id,
yh.id as id,
yh.emp_num as empNum,
ye.emp_num as empNum,
ye.name as userName,
ye.name as userName,
ye.head_url as headUrl,
ye.head_url as headUrl,
zm.name as deptName,
zm.name as deptName,
ye.job_type as jobType,
ye.job_type as jobType,
yh.ht_id as htId,
yh.ht_id as htId,
yh.type as type,
yh.type as type,
zc.company_name as companyName,
zc.company_name as companyName,
yh.status as status,
yh.status as status,
yh.htqx as htqx,
yh.htqx as htqx,
yh.start_time as statTime,
yh.start_time as statTime,
yh.end_time as endTime
yh.end_time as endTime
FROM
yggl_main_emp ye
LEFT JOIN yggl_atta_htxxb yh ON ( ye.emp_num = yh.emp_num AND ye.org_code = yh.org_code )
LEFT JOIN zzgl_bmgw_m zm ON zm.id = ye.bmgw_id
LEFT JOIN zpgl_company zc ON zc.id = yh.htqygs
<where>
ye.org_code=#{orgCode}
<if
test=
"type == 0"
>
and yh.id is not null
and yh.delete_flag = 0
</if>
<if
test=
"type == 1"
>
and yh.id is null
</if>
</where>
LIMIT #{page.offset}, #{page.totalPage}
</select>
<select
id=
"selectTotalByType"
resultType=
"java.lang.Integer"
>
SELECT
count(ye.id)
FROM
FROM
yggl_atta_htxxb yh
yggl_main_emp ye
LEFT JOIN yggl_main_emp ye ON ( ye.emp_num = yh.emp_num AND ye.org_code = yh.org_code )
LEFT JOIN yggl_atta_htxxb yh ON ( ye.emp_num = yh.emp_num AND ye.org_code = yh.org_code )
LEFT JOIN zzgl_bmgw_m zm ON zm.id = ye.bmgw_id
LEFT JOIN zzgl_bmgw_m zm ON zm.id = ye.bmgw_id
LEFT JOIN zpgl_company zc ON zc.id = yh.htqygs
LEFT JOIN zpgl_company zc ON zc.id = yh.htqygs
where yh.jc_status = #{type}
<where>
ye.org_code=#{orgCode}
<if
test=
"type == 0"
>
and yh.id is not null
and yh.delete_flag = 0
</if>
<if
test=
"type == 1"
>
and yh.id is null
</if>
<!-- <if test="bmgwId != null and bmgwId != null">-->
<!-- and ye.bmgwId = #{bmgwId}-->
<!-- </if>-->
<!-- <if test="htType != null and htType != null">-->
<!-- and yh.htType = #{htType}-->
<!-- </if>-->
<!-- <if test="jobType != null and jobType != null">-->
<!-- and ye.jobType = #{jobType}-->
<!-- </if>-->
</where>
</select>
</select>
</mapper>
</mapper>
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