| | |
| | | import cn.hutool.json.JSONUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ltkj.common.annotation.Log; |
| | | import com.ltkj.common.annotation.RepeatSubmit; |
| | | import com.ltkj.common.enums.BusinessType; |
| | | import com.ltkj.common.enums.DataSourceType; |
| | | import com.ltkj.common.utils.SecurityUtils; |
| | |
| | | @PostMapping |
| | | @ApiOperation(value = "新增客户") |
| | | @Transactional |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody @ApiParam(value = "客户对象信息") TjCustomer tjCustomer) { |
| | | if (null == tjCustomer.getCusIdcard() || null == tjCustomer.getCusPhone()) { |
| | | return AjaxResult.error("请输入身份证号或手机号"); |
| | |
| | | return AjaxResult.success(tjCustomer); |
| | | } |
| | | } |
| | | return null; |
| | | return AjaxResult.error(object.getStr("ResultContent")); |
| | | } |
| | | |
| | | /** |
| | |
| | | // hisApiGetMethodService.save(object, "Outpincreateapply", hisApiConfig, JSONUtil.toJsonStr(BeanUtil.beanToMap(tjCustomer))); |
| | | return AjaxResult.success(); |
| | | } |
| | | return AjaxResult.error(); |
| | | return AjaxResult.error(object.getStr("ResultContent")); |
| | | } |
| | | return AjaxResult.success(); |
| | | } |