my first demo
first demo
java
package ctyun.finance.rest;
import ch.qos.logback.classic.Logger;
import ctyun.finance.biz.CostOutsourcingExpensesProductPcntCalculationBiz;
import ctyun.finance.entity.CostOutsourcingExpensesProductPcntCalculation;
import ctyun.finance.util.CommonUtil;
import ctyun.security.common.msg.ObjectRestResponse;
import ctyun.security.common.msg.TableResultResponse;
import ctyun.security.common.rest.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
import java.util.Map;
@Slf4j
@Controller
@Api(tags = "成本分攤佔比頁面")
@RequestMapping("costOutsourcingExpensesProductPcntCalculation")
public class CostOutsourcingExpensesProductPcntCalculationController extends BaseController<CostOutsourcingExpensesProductPcntCalculationBiz, CostOutsourcingExpensesProductPcntCalculation> {
@Autowired
CostOutsourcingExpensesProductPcntCalculationBiz costOutsourcingExpensesProductPcntCalculationBiz;
@GetMapping("personnelOut/cost/type")
@ApiOperation(value = "人員外包費成本分攤佔比")
@ApiImplicitParams(
@ApiImplicitParam(name = "monthID", value = "月份", paramType = "query")
)
public TableResultResponse<Map<String, List> > getCostPerson(@RequestParam String monthId) {
TableResultResponse<Map<String, List>> tableResultResponse = new TableResultResponse<>();
try {
CostOutsourcingExpensesProductPcntCalculation costCalcu = new CostOutsourcingExpensesProductPcntCalculation();
costCalcu.setMonthId(monthId);
tableResultResponse= costOutsourcingExpensesProductPcntCalculationBiz.getCostPerson(costCalcu);
}catch (Exception e){
log.error("財務模組:人員外包費成本分攤佔比異常:",e);
tableResultResponse.setStatus(900);
tableResultResponse.setMessage("連線異常");
}
return tableResultResponse;
}
}
相關文章
- My First Blog
- My first blog!
- My First Blog Ever——記我在交大ACM班的第一個學期ACM
- MySQL [MY-011608] [MY-010207]MySql
- 7.93 FIRST
- First Blog
- :first-child與:first-of-type 區別
- My PromisePromise
- First steps with Incus
- My New GoalGo
- This is my Load.
- About My Blog
- my academic life
- my_list
- MRCTF My secret
- My excellent 2018Excel
- 【EF Core】Code first
- 7.94 FIRST_VALUE
- Head First Python (一)Python
- Andy's First Dictionary
- My favorite story(revised)
- My favorite story(rivised)
- oh-my-zsh
- my.ini配置
- 解析MySQL 配置檔案 my.cnf / my.ini 區別MySql
- ! [rejected] master -> master (fetch first)AST
- Creating your first iOS FrameworkiOSFramework
- CSS E::first-letterCSS
- FIRST_ROWS_n(轉)
- CSS E:first-of-typeCSS
- Leetcode 41 First Missing PositiveLeetCode
- Head First HTML and CSS (八)HTMLCSS
- CSS E:first-childCSS
- css選擇器中:first-child與:first-of-type的區別CSS
- My suggestions on SAP ABAP transformationORM
- zjs-my-diary-20201113JS
- zjs-my-diary-20201111JS
- zjs-my-diary-20201009JS