|
|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dto.form.CustomerGridStaffListFormDTO; |
|
|
|
import com.epmet.dto.form.GridStaffUploadtFormDTO; |
|
|
@ -82,7 +83,9 @@ public class GridstaffInfoPingyinServiceImpl extends BaseServiceImpl<GridstaffIn |
|
|
|
entity.setGridCode(gs.getGridCode()); |
|
|
|
entity.setGridName(gs.getGridName()); |
|
|
|
entity.setSex("0".equals(us.getSex()) ? "9" : us.getSex()); |
|
|
|
entity.setIsLeave("N"); |
|
|
|
if ("Y".equals(entity.getIsLeave())) { |
|
|
|
entity.setLeaveDate(us.getDate()); |
|
|
|
} |
|
|
|
entityList.add(entity); |
|
|
|
} |
|
|
|
} |
|
|
@ -123,7 +126,8 @@ public class GridstaffInfoPingyinServiceImpl extends BaseServiceImpl<GridstaffIn |
|
|
|
entity.setQxMc("平阴县"); |
|
|
|
entity.setGridCode(r.getCode()); |
|
|
|
entity.setGridName(r.getGridName()); |
|
|
|
entity.setIsLeave("N"); |
|
|
|
entity.setIsLeave(r.getIsLeave()); |
|
|
|
entity.setLeaveDate(r.getLeaveDate()); |
|
|
|
entity.setGridUserId(r.getStaffId()); |
|
|
|
entity.setCardNum(r.getIdCard()); |
|
|
|
//按网格查询人员是否存在,存在更新否则新增
|
|
|
|