【R】自助进件业务接口开发

master
liuxinxin 5 years ago
parent b254d278cc
commit 9c395906c8

@ -35,6 +35,8 @@ public interface SimpleClientApplyService {
JSONObject getClientAggregateFile(String username, MultipartFile file,String clean_days) throws IOException;
JSONObject getPreApplyInfoForAggree(String username ,String clean_days);
JSONObject getBankInfo(String bsb_no);
void checkAccountName(String contact_phone,String nation_code);

@ -347,6 +347,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
}
}
@Override
public JSONObject getPreApplyInfoForAggree(String username ,String clean_days) {
JSONObject apply = sysClientPreMapperMapper.findByUserName(username);

@ -77,12 +77,10 @@ public class SimpleClientApplyController {
simpleClientApplyService.saveOrUpdateApplyInfo(applyBean.insertObject(), username);
}
@PostMapping(value = "/clientCompliance/{clientMoniker}/commit_aggregate_file")
@PostMapping(value = "/clientCompliance/{username}/commit_aggregate_file{clean_days}")
@ResponseBody
public JSONObject getClientArregateFile(@RequestParam MultipartFile file, @RequestHeader("User-Agent") String userAgent, HttpServletRequest request) throws IOException {
//这个是上传合同的接口现在为了测试方便返回一个带上传url的JSONObject需要传入usernameclean_days签名图片
String username = "111";
String clean_days = "11";
public JSONObject getClientArregateFile(@RequestParam MultipartFile file,@PathVariable String username,@PathVariable String clean_days) throws IOException {
//这个是上传合同的接口现在为了测试方便返回一个带合同url的JSONObject需要传入usernameclean_days签名图片
return simpleClientApplyService.getClientAggregateFile(username, file,clean_days);
}
@ -91,6 +89,12 @@ public class SimpleClientApplyController {
return attachmentClient.uploadFile(file, false);
}
@GetMapping(value = "/aggregateFile/client_info")
@ResponseBody
public JSONObject getClientInfoByAggree(@RequestParam String username, @RequestParam String clean_days) {
return simpleClientApplyService.getPreApplyInfoForAggree(username ,clean_days);
}
@GetMapping("/info/bank/{bsb_no}")
public JSONObject getBankInfo(@PathVariable String bsb_no, @RequestParam String username, @RequestParam String codeKey) {
simpleClientApplyService.checkOrGenerateRegisterProcessKey(username, codeKey);

@ -351,22 +351,6 @@
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2">* Logo</label>
<div class="col-sm-8">
<div class="form-control-static">
<button class="btn btn-success" type="button"
ngf-select="uploadLogo($file)"
accept="image/*">
<i class="fa fa-upload"></i> Upload Logo
</button>
</div>
<uib-progressbar value="logoProgress.value"
ng-if="logoProgress"></uib-progressbar>
<img ng-src="{{partner.logo_url}}" ng-if="partner.logo_url" style="height: 100px;">
</div>
</div>
<div class="row">
<div class="col-xs-12 margin-bottom">
<button type="button" class="btn btn-success btn-block btn-flat"

Loading…
Cancel
Save