Commit ad721d64 authored by 廖旭伟's avatar 廖旭伟

汇总统计sql问题处理

parent 4e54dd79
......@@ -193,6 +193,7 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
if (StringUtils.isEmpty(query.getCheckTimeStart()) || StringUtils.isEmpty(query.getCheckTimeStart())) {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
calendar.set(Calendar.DAY_OF_MONTH, 1);
String startTime = format.format(calendar.getTime());
calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH));
......
......@@ -6,6 +6,8 @@ import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.module.dept.model.DeptQuery;
import com.mortals.xhx.module.dept.service.DeptService;
import com.mortals.xhx.module.staff.model.StaffEntity;
import com.mortals.xhx.module.staff.service.StaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -50,6 +52,8 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro
private ParamService paramService;
@Autowired
private DeptService deptService;
@Autowired
private StaffService staffService;
public StaffPerformSummaryController() {
......@@ -70,4 +74,14 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro
query.getOrderColList().add(new OrderCol("month",OrderCol.DESCENDING));
}
}
@Override
protected int viewAfter(Long id, Map<String, Object> model, StaffPerformSummaryEntity entity, Context context) throws AppException {
StaffEntity staffEntity = staffService.get(entity.getStaffId());
if(staffEntity!=null){
entity.setWorkNum(staffEntity.getWorkNum());
entity.setPhoneNumber(staffEntity.getPhoneNumber());
}
return 1;
}
}
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