|
|
@@ -47,6 +47,8 @@ public class HpPayrollService extends CrudService<HpPayrollMapper, HpPayroll> {
|
|
|
private HpUserService hpUserService;
|
|
|
@Autowired
|
|
|
private HpMemberService hpMemberService;
|
|
|
+ @Autowired
|
|
|
+ private HpPayrollService hpPayrollService;
|
|
|
|
|
|
public HpPayroll get(String id) {
|
|
|
return super.get(id);
|
|
|
@@ -497,6 +499,11 @@ public class HpPayrollService extends CrudService<HpPayrollMapper, HpPayroll> {
|
|
|
if (TokenUtil.validateToken(userId, userToken)) {
|
|
|
String hpPayrollId = requestMap.get("hpPayroll_id"); //薪资id
|
|
|
HpPayroll hpPayroll=get(hpPayrollId);
|
|
|
+ //阅读之后设置已读
|
|
|
+ if(hpPayroll.getIsRead()!=1){
|
|
|
+ hpPayroll.setIsRead(1);
|
|
|
+ hpPayrollService.save(hpPayroll);
|
|
|
+ }
|
|
|
returnMap.put("hpPayroll", hpPayroll);
|
|
|
} else {
|
|
|
returnMap.put("success", "1004");
|