Commit 1d7a0d37 by 翁国栋

8小时后台--

合同页面-已签订
面试登记表详情页面
运营后台--
企业名称重复
parent f64f93e0
...@@ -158,4 +158,8 @@ public class InsureUser extends Model<InsureUser> { ...@@ -158,4 +158,8 @@ public class InsureUser extends Model<InsureUser> {
@ApiModelProperty(value = "批改原因") @ApiModelProperty(value = "批改原因")
private String reason; private String reason;
@ApiModelProperty(value = "批改原因")
private Date createTime;
} }
...@@ -676,7 +676,11 @@ public class QyzxController { ...@@ -676,7 +676,11 @@ public class QyzxController {
boolean b1; boolean b1;
if (q == null) { if (q == null) {
try { try {
qyzxEntInfoM.setRegisterTime(new Date()); QyzxEntInfoM gsif = QyzxEntInfoM.builder().build().selectOne(new QueryWrapper<QyzxEntInfoM>().lambda().eq(QyzxEntInfoM::getName, qyzxEntInfoM.getName()));
if(gsif!=null){
return ResultUtil.error("企业名称已存在");
}
qyzxEntInfoM.setRegisterTime(new Date());
QyzxEmpLogin login = new LambdaQueryChainWrapper<QyzxEmpLogin>(qyzxEmpLoginMapper) QyzxEmpLogin login = new LambdaQueryChainWrapper<QyzxEmpLogin>(qyzxEmpLoginMapper)
.eq(!StrUtil.hasBlank(qyzxEntInfoM.getPhone()), QyzxEmpLogin::getPhone, qyzxEntInfoM.getPhone()).one(); .eq(!StrUtil.hasBlank(qyzxEntInfoM.getPhone()), QyzxEmpLogin::getPhone, qyzxEntInfoM.getPhone()).one();
if (login != null) { if (login != null) {
......
...@@ -2098,11 +2098,16 @@ public class YgglController { ...@@ -2098,11 +2098,16 @@ public class YgglController {
List<YgglEmpLzyy> ygglEmpLzyyList = YgglEmpLzyy.builder().build().selectList(new QueryWrapper<YgglEmpLzyy>().lambda().eq(YgglEmpLzyy::getOrgCode,userBean.getOrgCode())); List<YgglEmpLzyy> ygglEmpLzyyList = YgglEmpLzyy.builder().build().selectList(new QueryWrapper<YgglEmpLzyy>().lambda().eq(YgglEmpLzyy::getOrgCode,userBean.getOrgCode()));
return ResultUtil.data(ygglEmpLzyyList); return ResultUtil.data(ygglEmpLzyyList);
} }
@GetMapping(value = "/getContract") @PostMapping(value = "/getContract")
@ApiOperation(value = "72.运营后台--合同概况列表", httpMethod = "GET", notes = "接口发布说明") @ApiOperation(value = "72.运营后台--合同概况列表", httpMethod = "POST", notes = "接口发布说明")
@ApiOperationSupport(order = 72) @ApiOperationSupport(order = 72)
public Result<Object> getContract(@CurrentUser UserBean userBean) { public Result<Object> getContract(@CurrentUser UserBean userBean,@RequestBody HtgkDto htgkDto) {
List<HtgkDto> htgkDtos = ygglAttaHtxxbMapper.queryContract(userBean.getOrgCode()); List<HtgkDto> htgkDtos=Lists.newArrayList();
if(htgkDto.getType()!=2){
htgkDtos = ygglAttaHtxxbMapper.selectListByType(htgkDto.getType());
}else {
htgkDtos = ygglAttaHtxxbMapper.queryContract(userBean.getOrgCode());
}
return ResultUtil.data(htgkDtos); return ResultUtil.data(htgkDtos);
} }
......
...@@ -518,6 +518,11 @@ public class ZpglController { ...@@ -518,6 +518,11 @@ public class ZpglController {
new QueryWrapper<ZpglRcxxTrain>().lambda().eq(ZpglRcxxTrain::getZpglRcxxId, zpglRcxxId) new QueryWrapper<ZpglRcxxTrain>().lambda().eq(ZpglRcxxTrain::getZpglRcxxId, zpglRcxxId)
.eq(ZpglRcxxTrain::getIsDelete, 0).orderByDesc(ZpglRcxxTrain::getEndTime) .eq(ZpglRcxxTrain::getIsDelete, 0).orderByDesc(ZpglRcxxTrain::getEndTime)
); );
// 家庭资料
List<ZpglRcxxJtzl> zpglRcxxJtzls = ZpglRcxxJtzl.builder().build().selectList(
new QueryWrapper<ZpglRcxxJtzl>().lambda().eq(ZpglRcxxJtzl::getZpglRcxxId, zpglRcxxId)
.eq(ZpglRcxxJtzl::getIsDelete, 0).orderByDesc(ZpglRcxxJtzl::getCreateTime)
);
// FPA性格测评数据 // FPA性格测评数据
ZpglDtk zpglDtk = ZpglDtk.builder().build().selectOne(new QueryWrapper<ZpglDtk>().lambda().eq(ZpglDtk::getZpglRcxxId, zpglRcxxId)); ZpglDtk zpglDtk = ZpglDtk.builder().build().selectOne(new QueryWrapper<ZpglDtk>().lambda().eq(ZpglDtk::getZpglRcxxId, zpglRcxxId));
...@@ -533,6 +538,7 @@ public class ZpglController { ...@@ -533,6 +538,7 @@ public class ZpglController {
map.put("zpglRcxxTrains", zpglRcxxTrains); map.put("zpglRcxxTrains", zpglRcxxTrains);
map.put("zpglDtk", zpglDtk); map.put("zpglDtk", zpglDtk);
map.put("zpglRcxxOffer", zpglRcxxOffer); map.put("zpglRcxxOffer", zpglRcxxOffer);
map.put("zpglRcxxJtzls",zpglRcxxJtzls);
return ResultUtil.data(map, "搜索成功"); return ResultUtil.data(map, "搜索成功");
} catch (Exception e) { } catch (Exception e) {
......
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 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;
...@@ -18,6 +19,8 @@ public interface YgglAttaHtxxbMapper extends BaseMapper<YgglAttaHtxxb> { ...@@ -18,6 +19,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);
} }
...@@ -19,14 +19,27 @@ public class HtgkDto implements Serializable{ ...@@ -19,14 +19,27 @@ public class HtgkDto implements Serializable{
@ApiModelProperty(value="已签订",example="1") @ApiModelProperty(value="已签订",example="1")
private Integer signCount; private Integer signCount;
@ApiModelProperty(value="在职员工",example="12") @ApiModelProperty(value="在职员工",example="12")
private Integer probation; private Integer probation;
@ApiModelProperty(value="合同即将到期人数",example="12") @ApiModelProperty(value="合同即将到期人数",example="12")
private Integer dueSoon; private Integer dueSoon;
@ApiModelProperty(value="合同签约公司",example="合同签约公司") @ApiModelProperty(value="合同签约公司",example="合同签约公司")
private String companyName; private String companyName;
@ApiModelProperty(value="id",example="合同签约公司")
private Integer id;
private String userName;
private String headUrl;
private String deptName;
private Integer jobType;
private String htId;
private Integer type;
private Integer status;
private Integer htqx;
private Date statTime;
private Date endTime;
private Integer empNum;
} }
...@@ -312,10 +312,11 @@ ...@@ -312,10 +312,11 @@
and iu.insure_status = #{policyDto.status} and iu.insure_status = #{policyDto.status}
</if> </if>
</where> </where>
order by iu.policy_date_start desc
<if test="policyDto.page.offset != null and policyDto.page.totalPage !=null"> <if test="policyDto.page.offset != null and policyDto.page.totalPage !=null">
LIMIT #{policyDto.page.offset},#{policyDto.page.totalPage} LIMIT #{policyDto.page.offset},#{policyDto.page.totalPage}
</if> </if>
order by iu.policy_date_start desc
</select> </select>
<select id="totalUser" resultType="java.lang.Integer"> <select id="totalUser" resultType="java.lang.Integer">
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,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
...@@ -167,4 +167,27 @@ ...@@ -167,4 +167,27 @@
FROM `zpgl_company` zc FROM `zpgl_company` zc
</select> </select>
</mapper> <select id="selectListByType" resultType="cn.timer.api.dto.yggl.HtgkDto">
\ No newline at end of file SELECT
yh.id as id,
yh.emp_num as empNum,
ye.name as userName,
ye.head_url as headUrl,
zm.name as deptName,
ye.job_type as jobType,
yh.ht_id as htId,
yh.type as type,
zc.company_name as companyName,
yh.status as status,
yh.htqx as htqx,
yh.start_time as statTime,
yh.end_time as endTime
FROM
yggl_atta_htxxb yh
LEFT JOIN yggl_main_emp ye 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 yh.jc_status = #{type}
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment