|
@@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
@@ -44,7 +45,7 @@ import com.fuzamei.utils.ValidationUtil;
|
|
|
* @author ylx
|
|
|
*
|
|
|
*/
|
|
|
-@Controller
|
|
|
+@RestController
|
|
|
@RequestMapping("/valuation_accounting")
|
|
|
public class ValuationAccountingAction {
|
|
|
|
|
@@ -75,8 +76,7 @@ public class ValuationAccountingAction {
|
|
|
* @date 2017年12月18日 下午3:17:30
|
|
|
*/
|
|
|
@RequestMapping(value="/queryValuationAccountingInformation",method=RequestMethod.POST)
|
|
|
- @ResponseBody
|
|
|
- public Map<String,Object> queryOperationHistoryInformation(@RequestBody String data){
|
|
|
+ private Map<String,Object> queryOperationHistoryInformation(@RequestBody String data){
|
|
|
try {
|
|
|
System.out.println("查询估值核算数据");
|
|
|
@SuppressWarnings("unchecked")
|
|
@@ -124,8 +124,7 @@ public class ValuationAccountingAction {
|
|
|
* @date 2017年12月28日 下午1:48:43
|
|
|
*/
|
|
|
@RequestMapping(value="/checkoutDownloadInformation",method=RequestMethod.POST)
|
|
|
- @ResponseBody
|
|
|
- public Map<String,Object> checkoutDownloadInformation(@RequestBody String data){
|
|
|
+ private Map<String,Object> checkoutDownloadInformation(@RequestBody String data){
|
|
|
try {
|
|
|
@SuppressWarnings("unchecked")
|
|
|
Map<String, Object> map = JSON.parseObject(data, Map.class);
|
|
@@ -154,8 +153,7 @@ public class ValuationAccountingAction {
|
|
|
* @date 2017年12月28日 下午3:39:18
|
|
|
*/
|
|
|
@RequestMapping(value="/fistUploadFundDataByAdmin",method=RequestMethod.POST)
|
|
|
- @ResponseBody
|
|
|
- public Map<String,Object> fistUploadFundDataByAdmin(@RequestBody String data){
|
|
|
+ private Map<String,Object> fistUploadFundDataByAdmin(@RequestBody String data){
|
|
|
try {
|
|
|
@SuppressWarnings("unchecked")
|
|
|
Map<String, Object> map = JSON.parseObject(data, Map.class);
|
|
@@ -181,8 +179,7 @@ public class ValuationAccountingAction {
|
|
|
* @date 2017年12月18日 下午5:26:46
|
|
|
*/
|
|
|
@RequestMapping(value="/downloadValuationPOI")
|
|
|
- @ResponseBody
|
|
|
- public Map<String, Object> download(HttpServletRequest request,HttpServletResponse response,
|
|
|
+ private Map<String, Object> download(HttpServletRequest request,HttpServletResponse response,
|
|
|
@RequestParam("url") String url,
|
|
|
@RequestParam("userId") Object uId) {
|
|
|
try {
|
|
@@ -236,8 +233,7 @@ public class ValuationAccountingAction {
|
|
|
* @date 2017年12月18日 下午5:29:38
|
|
|
*/
|
|
|
@RequestMapping(value="/uploadValuationPOIByAdminForTheFirstTime",method=RequestMethod.POST)
|
|
|
- @ResponseBody
|
|
|
- public Map<String, Object> uploadValuationPOIByAdmin(@RequestParam("file") MultipartFile file,HttpServletRequest request,
|
|
|
+ private Map<String, Object> uploadValuationPOIByAdmin(@RequestParam("file") MultipartFile file,HttpServletRequest request,
|
|
|
@RequestParam("fundId") String fId,
|
|
|
@RequestParam("fundName") String fName,
|
|
|
@RequestParam("assets") String ass,
|
|
@@ -306,8 +302,7 @@ public class ValuationAccountingAction {
|
|
|
* @date 2017年12月18日 下午8:17:47
|
|
|
*/
|
|
|
@RequestMapping(value="/uploadValuationPOIByBankOrByAdmin",method=RequestMethod.POST)
|
|
|
- @ResponseBody
|
|
|
- public Map<String, Object> uploadValuationPOIByBankOrByAdmin(@RequestParam("file") MultipartFile file,HttpServletRequest request,
|
|
|
+ private Map<String, Object> uploadValuationPOIByBankOrByAdmin(@RequestParam("file") MultipartFile file,HttpServletRequest request,
|
|
|
@RequestParam("fundId") String fId,
|
|
|
@RequestParam("fundName") String fName,
|
|
|
@RequestParam("userId") Object uId) {
|