税务接口
This commit is contained in:
parent
c952344f46
commit
783e6aca1d
|
|
@ -30,11 +30,19 @@ public class CrmNsrzgController {
|
|||
|
||||
@PostMapping("/queryByNsrsbh/{nsrsbh}")
|
||||
@ApiOperation("根据Nsrsbh查询")
|
||||
public Result<CrmNsrzg> queryByDjxhNsrsbh(@PathVariable("nsrsbh") String nsrsbh){
|
||||
public Result<CrmNsrzg> queryByNsrsbh(@PathVariable("nsrsbh") String nsrsbh){
|
||||
CrmNsrzg nsrzg = crmNsrzgService.getNsrzgByNsrsbh(nsrsbh);
|
||||
return R.ok(nsrzg);
|
||||
}
|
||||
|
||||
@PostMapping("/queryByDjxh/{djxh}")
|
||||
@ApiOperation("根据Djxh查询")
|
||||
public Result<CrmNsrzg> queryByDjxh(@PathVariable("djxh") String djxh){
|
||||
CrmNsrzg nsrzg = crmNsrzgService.getNsrzgByDjxh(djxh);
|
||||
return R.ok(nsrzg);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("保存数据")
|
||||
public Result add(@RequestBody CrmNsrzg crmNsrzg) {
|
||||
|
|
|
|||
|
|
@ -38,9 +38,16 @@ public interface ICrmNsrzgService extends BaseService<CrmNsrzg> {
|
|||
List<CrmNsrzg> getNsrzgList(CrmNsrzg crmNsrzg);
|
||||
|
||||
/**
|
||||
* 根据登记序号查询纳税人资格信息
|
||||
* 根据纳税人识别号查询纳税人资格信息
|
||||
* @param nsrsbh
|
||||
* @return
|
||||
*/
|
||||
CrmNsrzg getNsrzgByNsrsbh(String nsrsbh);
|
||||
|
||||
/**
|
||||
* 根据登记序号查询纳税人资格信息
|
||||
* @param djxh
|
||||
* @return
|
||||
*/
|
||||
CrmNsrzg getNsrzgByDjxh(String djxh);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,4 +62,12 @@ public class CrmNsrzgServiceImpl extends BaseServiceImpl<CrmNsrzgMapper, CrmNsrz
|
|||
.eq("djxh", crmQyjbxx.getDjxh())
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CrmNsrzg getNsrzgByDjxh(String djxh) {
|
||||
|
||||
return crmNsrzgMapper.selectOne(new QueryWrapper<CrmNsrzg>()
|
||||
.eq("djxh", djxh)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue