|
@@ -215,4 +215,28 @@ public class TaContactController extends BaseController {
|
215
|
215
|
}
|
216
|
216
|
return responseBean;
|
217
|
217
|
}
|
|
218
|
+
|
|
219
|
+ /**
|
|
220
|
+ * 新增财务联系人
|
|
221
|
+ * @param id 实体ID
|
|
222
|
+ */
|
|
223
|
+ @RequestMapping(value="/channel/taContactFinance/{id}",method= RequestMethod.PUT)
|
|
224
|
+ public ResponseBean taContactInfoAdd(@PathVariable Integer id){
|
|
225
|
+ ResponseBean responseBean = new ResponseBean();
|
|
226
|
+ try {
|
|
227
|
+ TaContact taContact = new TaContact();
|
|
228
|
+ taContact.setContactId(id);
|
|
229
|
+ taContact.setContactType(CommConstant.FINANCE);
|
|
230
|
+ if (iTaContactService.updateById(taContact)) {
|
|
231
|
+ responseBean.addSuccess(taContact);
|
|
232
|
+ } else {
|
|
233
|
+ responseBean.addError("fail");
|
|
234
|
+ }
|
|
235
|
+ }catch (Exception e){
|
|
236
|
+ e.printStackTrace();
|
|
237
|
+ logger.error("taContactInfoAdd -=- {}",e.toString());
|
|
238
|
+ responseBean.addError(e.getMessage());
|
|
239
|
+ }
|
|
240
|
+ return responseBean;
|
|
241
|
+ }
|
218
|
242
|
}
|