|
|
@ -8,9 +8,11 @@ import org.jeecg.modules.apiBean.PageBean; |
|
|
|
import org.jeecg.modules.apiService.CommonApiService; |
|
|
|
import org.jeecg.modules.employAhthenticationCompany.entity.EmployAhthenticationCompany; |
|
|
|
import org.jeecg.modules.employAuthenticationPerson.entity.EmployAuthenticationPerson; |
|
|
|
import org.jeecg.modules.employBillInfo.entity.EmployBillInfo; |
|
|
|
import org.jeecg.modules.employFeedback.entity.EmployFeedback; |
|
|
|
import org.jeecg.modules.employNotebook.entity.EmployNotebook; |
|
|
|
import org.jeecg.modules.employVipUser.entity.EmployVipUser; |
|
|
|
import org.jeecg.modules.employWorkInfo.entity.EmployWorkInfo; |
|
|
|
import org.springframework.web.bind.annotation.RequestHeader; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMethod; |
|
|
@ -85,6 +87,54 @@ public class CommonApiController { |
|
|
|
return commonApiService.queryNotebookList(token, type, status, pageBean); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value="记工记账-项目记账", notes="记工记账-项目记账") |
|
|
|
@RequestMapping(value = "/addBillInfo", method = {RequestMethod.POST}) |
|
|
|
public Result<?> addBillInfo(@RequestHeader("X-Access-Token") String token, EmployBillInfo employBillInfo){ |
|
|
|
String message = null; |
|
|
|
//参数校验 |
|
|
|
if(null == employBillInfo.getNotebookId()){ |
|
|
|
message = "账本id为空,请输入正确的账本id"; |
|
|
|
}else if(null == employBillInfo.getAmount()){ |
|
|
|
message = "记账金额为空,请输入金额"; |
|
|
|
}else if(null == employBillInfo.getBillDate()){ |
|
|
|
message = "记账日期为空,请输入记账日期"; |
|
|
|
}else if(null == employBillInfo.getType()){ |
|
|
|
message = "记账类型为空,请输入记账类型"; |
|
|
|
} |
|
|
|
//参数输入有误,返回错误信息 |
|
|
|
if(null != message){ |
|
|
|
return Result.OK(message); |
|
|
|
} |
|
|
|
|
|
|
|
//业务处理 |
|
|
|
return commonApiService.addBillInfo(token, employBillInfo); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value="记工记账-项目记工", notes="记工记账-项目记工") |
|
|
|
@RequestMapping(value = "/addWorkInfo", method = {RequestMethod.POST}) |
|
|
|
public Result<?> addWorkInfo(@RequestHeader("X-Access-Token") String token, EmployWorkInfo employWorkInfo){ |
|
|
|
String message = null; |
|
|
|
//参数校验 |
|
|
|
if(null == employWorkInfo.getNotebookId()){ |
|
|
|
message = "账本id为空,请输入正确的账本id"; |
|
|
|
}else if(null == employWorkInfo.getType()){ |
|
|
|
message = "工作类型为空,请输入工作类型"; |
|
|
|
}else if(null == employWorkInfo.getOvertime()){ |
|
|
|
message = "加班时长为空,请输入加班时长"; |
|
|
|
}else if(null == employWorkInfo.getWorkDate()){ |
|
|
|
message = "记工日期为空,请输入记工日期"; |
|
|
|
} |
|
|
|
|
|
|
|
//参数输入有误,返回错误信息 |
|
|
|
if(null != message){ |
|
|
|
return Result.OK(message); |
|
|
|
} |
|
|
|
|
|
|
|
//业务处理 |
|
|
|
return commonApiService.addWorkInfo(token, employWorkInfo); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/***************会员中心***************/ |
|
|
|
//会员中心-正式积分||临时积分 |
|
|
|
@ApiOperation(value="会员中心-正式积分||临时积分", notes="正式积分||临时积分||当前积分") |
|
|
|