|
@@ -254,4 +254,28 @@ public class TaContactController extends BaseController {
|
254
|
254
|
}
|
255
|
255
|
return responseBean;
|
256
|
256
|
}
|
|
257
|
+
|
|
258
|
+ /**
|
|
259
|
+ * 新增财务联系人
|
|
260
|
+ * @param id 实体ID
|
|
261
|
+ */
|
|
262
|
+ @RequestMapping(value="/channel/taContactFinance/{id}",method= RequestMethod.PUT)
|
|
263
|
+ public ResponseBean taContactInfoAdd(@PathVariable Integer id){
|
|
264
|
+ ResponseBean responseBean = new ResponseBean();
|
|
265
|
+ try {
|
|
266
|
+ TaContact taContact = new TaContact();
|
|
267
|
+ taContact.setContactId(id);
|
|
268
|
+ taContact.setContactType(CommConstant.FINANCE);
|
|
269
|
+ if (iTaContactService.updateById(taContact)) {
|
|
270
|
+ responseBean.addSuccess(taContact);
|
|
271
|
+ } else {
|
|
272
|
+ responseBean.addError("fail");
|
|
273
|
+ }
|
|
274
|
+ }catch (Exception e){
|
|
275
|
+ e.printStackTrace();
|
|
276
|
+ logger.error("taContactInfoAdd -=- {}",e.toString());
|
|
277
|
+ responseBean.addError(e.getMessage());
|
|
278
|
+ }
|
|
279
|
+ return responseBean;
|
|
280
|
+ }
|
257
|
281
|
}
|