Commit cc0a8448 by 林冲

申诉单

1 parent f0288a3f
......@@ -6,6 +6,7 @@ import cn.com.glsx.dj.staff.dto.salaryappealapply.StaffSalaryAppealSummaryDTO;
import cn.com.glsx.dj.staff.service.StaffSalaryAppealApplyRecordService;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
......@@ -25,6 +26,9 @@ public class StaffSalaryAppealApplyRecordRemoteImpl implements StaffSalaryAppeal
log.info("createAppeal start, dto:{}", dto);
Boolean result = staffSalaryAppealApplyRecordService.createAppeal(dto);
return RpcResponse.success(result);
}catch (RpcServiceException e) {
log.error(e.getMessage(),e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error(e.getMessage(),e);
return RpcResponse.error(e);
......@@ -95,6 +99,9 @@ public class StaffSalaryAppealApplyRecordRemoteImpl implements StaffSalaryAppeal
log.info("webReply start, dto:{}", dto);
Boolean result = staffSalaryAppealApplyRecordService.webReply(dto);
return RpcResponse.success(result);
} catch(RpcServiceException e){
log.error(e.getMessage(),e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error(e.getMessage(),e);
return RpcResponse.error(e);
......
......@@ -27,7 +27,6 @@ import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.oreframework.distribute.lock.annotation.GlsxDistributeLockable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
......@@ -38,7 +37,10 @@ import tk.mybatis.mapper.entity.Example;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
@Slf4j
......@@ -476,10 +478,11 @@ public class StaffMonthSalarySlipService {
StaffMonthBdmCount oldRecord = list.get(0);
oldRecord.setModifyFlag(1);
oldRecord.setShopCount(staffMonthBdmCount.getShopCount());
oldRecord.setRecordingCount(staffMonthBdmCount.getRecordingCount());
oldRecord.setBehaviorCount(Math.abs(staffMonthBdmCount.getRecordingCount() - oldRecord.getShopCount()));
oldRecord.setUpdatedDate(new Date());
oldRecord.setUpdatedBy(staffMonthBdmCount.getUpdatedBy());
return staffMonthBdmCountMapper.updateByPrimaryKeySelective(staffMonthBdmCount);
return staffMonthBdmCountMapper.updateByPrimaryKeySelective(oldRecord);
}
// 新增
......
......@@ -58,6 +58,9 @@
<if test="appealType != null">
AND appeal_type = #{appealType}
</if>
<if test="dealStatus != null">
AND deal_status = #{dealStatus}
</if>
<if test="applyStartTime != null and applyStartTime != ''">
AND created_date &gt;= #{applyStartTime}
</if>
......@@ -129,17 +132,13 @@
</foreach>
)
</if>
<if test="sceneTypeList != null and sceneTypeList.size() > 0">
<if test="sceneType != null">
AND EXISTS (
SELECT 1
FROM dj_car_life_staff_info dclsi
WHERE dclsi.phone_number = dj_car_life_staff_salary_appeal_apply_record.staff_phone
AND dclsi.deleted_flag = 'N'
AND (
<foreach collection="sceneTypeList" item="sceneType" separator="OR">
FIND_IN_SET(#{sceneType}, dclsi.staff_scene_label) > 0
</foreach>
)
AND FIND_IN_SET(#{sceneType}, dclsi.staff_scene_label) > 0
)
</if>
ORDER BY created_date DESC
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!