Commit e64ffd92 authored by wangzb's avatar wangzb

feature-wzb :bug修复

parent 08302294
...@@ -31,7 +31,7 @@ public interface TEmployeeRetirementMapper extends BaseMapper<TEmployeeRetiremen ...@@ -31,7 +31,7 @@ public interface TEmployeeRetirementMapper extends BaseMapper<TEmployeeRetiremen
boolean changeHandleFlag(@Param("changeHandleFlagVo")ChangeHandleFlagVo changeHandleFlagVo); boolean changeHandleFlag(@Param("changeHandleFlagVo")ChangeHandleFlagVo changeHandleFlagVo);
int selectByEmpIdcard(@Param("empIdCard") String empIdCard); int selectByEmpIdcard(@Param("empIdCard") String empIdCard,@Param("deptNo") String deptNo);
int add(@Param("tEmployeeRetirement") TEmployeeRetirement tEmployeeRetirement); int add(@Param("tEmployeeRetirement") TEmployeeRetirement tEmployeeRetirement);
......
...@@ -70,7 +70,7 @@ private TEmployeeRetirementFlagDetailMapper tEmployeeRetirementFlagDetailMapper; ...@@ -70,7 +70,7 @@ private TEmployeeRetirementFlagDetailMapper tEmployeeRetirementFlagDetailMapper;
String pp=DateUtil.dateToString(DateUtil.stringToDate(LL)); String pp=DateUtil.dateToString(DateUtil.stringToDate(LL));
List<TEmployeeRetirement> list = baseMapper.getBirthday(oo,pp); List<TEmployeeRetirement> list = baseMapper.getBirthday(oo,pp);
for (TEmployeeRetirement tEmployeeRetirement : list) { for (TEmployeeRetirement tEmployeeRetirement : list) {
int i = baseMapper.selectByEmpIdcard(tEmployeeRetirement.getEmpIdcard()); int i = baseMapper.selectByEmpIdcard(tEmployeeRetirement.getEmpIdcard(),tEmployeeRetirement.getDeptNo());
if (i == 0) { if (i == 0) {
tEmployeeRetirement.setHandleFlag(0); tEmployeeRetirement.setHandleFlag(0);
tEmployeeRetirement.setCreateBy("1"); tEmployeeRetirement.setCreateBy("1");
......
...@@ -157,9 +157,9 @@ ...@@ -157,9 +157,9 @@
</select> </select>
<select id="selectByEmpIdcard" resultType="Integer"> <select id="selectByEmpIdcard" resultType="Integer">
SELECT count(*) SELECT count(*)
<include refid="Base_Column_List"/>
FROM t_employee_retirement a FROM t_employee_retirement a
where EMP_IDCARD=#{empIdCard} where EMP_IDCARD=#{empIdCard}
and DEPT_NO=#{deptNo}
</select> </select>
<select id="getBirthday" parameterType="String" resultMap="BaseResultMap"> <select id="getBirthday" parameterType="String" resultMap="BaseResultMap">
SELECT a.EMP_NAME, SELECT a.EMP_NAME,
......
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