Commit 7bbd258f authored by hongguangwu's avatar hongguangwu

根据参数返回合同list

parent 6def6485
......@@ -104,6 +104,18 @@ public class TEmployeeContractInfoController {
return new R<>(tEmployeeContractInfoService.getTEmployeeContractInfoPage(page, tEmployeeContractInfo));
}
/**
* @param tEmployeeContractInfo
* @Description: 根据参数返回list
* @Author: hgw
* @Date: 2022/7/4 16:00
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.util.List < com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractInfo>>
**/
@Operation(summary = "根据参数返回list", description = "根据参数返回list")
@GetMapping("/getListByParam")
public R<List<TEmployeeContractInfo>> getListByParam(TEmployeeContractInfo tEmployeeContractInfo) {
return new R<>(tEmployeeContractInfoService.getTEmployeeContractList(tEmployeeContractInfo));
}
/**
* 通过id查询员工合同
......
......@@ -24,6 +24,8 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 员工合同
*
......@@ -42,6 +44,8 @@ public interface TEmployeeContractInfoMapper extends BaseMapper<TEmployeeContrac
IPage<TEmployeeContractInfo> getTEmployeeContractInfoPage(Page<TEmployeeContractInfo> page
, @Param("tEmployeeContractInfo") TEmployeeContractInfo tEmployeeContractInfo);
List<TEmployeeContractInfo> getTEmployeeContractList(@Param("tEmployeeContractInfo") TEmployeeContractInfo tEmployeeContractInfo);
/**
* 更新项目内的其他的合同在用状态
* @Author fxj
......
......@@ -48,6 +48,8 @@ public interface TEmployeeContractInfoService extends IService<TEmployeeContract
*/
IPage<TEmployeeContractInfo> getTEmployeeContractInfoPage(Page<TEmployeeContractInfo> page, TEmployeeContractInfo tEmployeeContractInfo);
List<TEmployeeContractInfo> getTEmployeeContractList(TEmployeeContractInfo tEmployeeContractInfo);
/**
* @param tEmployeeContractInfo
* @Description: 新增
......
......@@ -89,6 +89,11 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
return baseMapper.getTEmployeeContractInfoPage(page, tEmployeeContractInfo);
}
@Override
public List<TEmployeeContractInfo> getTEmployeeContractList(TEmployeeContractInfo tEmployeeContractInfo) {
return baseMapper.getTEmployeeContractList(tEmployeeContractInfo);
}
@Override
public R<List<ErrorMessage>> saveNewContract(TEmployeeContractInfo tEmployeeContractInfo) {
try {
......
......@@ -319,6 +319,17 @@
</where>
</select>
<!--tEmployeeContractInfo简单分页查询-->
<select id="getTEmployeeContractList" resultMap="tEmployeeContrctInfoMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_employee_contract_info a
<where>
a.DELETE_FLAG = 0
<include refid="tEmployeeContractInfo_where"/>
</where>
</select>
<!-- 根据员工ID更新合同在用状态 -->
<update id="updateInUseStatusById">
update t_employee_contract_info
......
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