Compare commits
3 Commits
949acc3020
...
783e6aca1d
| Author | SHA1 | Date |
|---|---|---|
|
|
783e6aca1d | |
|
|
c952344f46 | |
|
|
11c92dcdd9 |
|
|
@ -13,7 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/nsrzg")
|
@RequestMapping("/crmNsrzg")
|
||||||
@Api(tags = "纳税人资格信息")
|
@Api(tags = "纳税人资格信息")
|
||||||
public class CrmNsrzgController {
|
public class CrmNsrzgController {
|
||||||
|
|
||||||
|
|
@ -28,6 +28,13 @@ public class CrmNsrzgController {
|
||||||
return R.ok(nsrzg);
|
return R.ok(nsrzg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("/queryByNsrsbh/{nsrsbh}")
|
||||||
|
@ApiOperation("根据Nsrsbh查询")
|
||||||
|
public Result<CrmNsrzg> queryByNsrsbh(@PathVariable("nsrsbh") String nsrsbh){
|
||||||
|
CrmNsrzg nsrzg = crmNsrzgService.getNsrzgByNsrsbh(nsrsbh);
|
||||||
|
return R.ok(nsrzg);
|
||||||
|
}
|
||||||
|
|
||||||
@PostMapping("/queryByDjxh/{djxh}")
|
@PostMapping("/queryByDjxh/{djxh}")
|
||||||
@ApiOperation("根据Djxh查询")
|
@ApiOperation("根据Djxh查询")
|
||||||
public Result<CrmNsrzg> queryByDjxh(@PathVariable("djxh") String djxh){
|
public Result<CrmNsrzg> queryByDjxh(@PathVariable("djxh") String djxh){
|
||||||
|
|
@ -35,6 +42,7 @@ public class CrmNsrzgController {
|
||||||
return R.ok(nsrzg);
|
return R.ok(nsrzg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
@ApiOperation("保存数据")
|
@ApiOperation("保存数据")
|
||||||
public Result add(@RequestBody CrmNsrzg crmNsrzg) {
|
public Result add(@RequestBody CrmNsrzg crmNsrzg) {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/qycbrs")
|
@RequestMapping("/crmQycbrs")
|
||||||
@Api(tags = "企业参保人数信息")
|
@Api(tags = "企业参保人数信息")
|
||||||
public class CrmQycbrsController {
|
public class CrmQycbrsController {
|
||||||
|
|
||||||
|
|
@ -31,9 +31,15 @@ public class CrmQycbrsController {
|
||||||
return R.ok(qyjxfp);
|
return R.ok(qyjxfp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("/queryByNsrsbhAndTime")
|
||||||
|
public Result<List<CrmQycbrs>> queryByNsrsbhAndTime(@RequestBody CrmParamAndTimeVO vo) {
|
||||||
|
List<CrmQycbrs> qycbrsList = crmQycbrsService.getQycbrsListByNsrsbhAndTime(vo);
|
||||||
|
return R.ok(qycbrsList);
|
||||||
|
}
|
||||||
|
|
||||||
@PostMapping("/queryByDjxhAndTime")
|
@PostMapping("/queryByDjxhAndTime")
|
||||||
public Result<List<CrmQycbrs>> queryByDjxhAndTime(@RequestBody CrmParamAndTimeVO vo) {
|
public Result<List<CrmQycbrs>> queryByDjxhAndTime(@RequestBody CrmParamAndTimeVO vo) {
|
||||||
List<CrmQycbrs> qycbrsList = crmQycbrsService.getQycbrsListByParamAndTime(vo);
|
List<CrmQycbrs> qycbrsList = crmQycbrsService.getQycbrsListByDjxhAndTime(vo);
|
||||||
return R.ok(qycbrsList);
|
return R.ok(qycbrsList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.*;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/qyfxmx")
|
@RequestMapping("/crmQyfxmx")
|
||||||
@Api(tags = "企业风险明细信息")
|
@Api(tags = "企业风险明细信息")
|
||||||
public class CrmQyfxmxController {
|
public class CrmQyfxmxController {
|
||||||
|
|
||||||
|
|
@ -30,10 +30,17 @@ public class CrmQyfxmxController {
|
||||||
return R.ok(qyfxmx);
|
return R.ok(qyfxmx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("/queryByNsrsbhAndTime")
|
||||||
|
@ApiOperation("根据登记序号和月份(选填)查询")
|
||||||
|
public Result<List<CrmQyfxmx>> queryByNsrsbhAndTime(@RequestBody CrmParamAndTimeVO vo){
|
||||||
|
List<CrmQyfxmx> qyfxmxList = crmQyfxmxService.getQyfxmxListByNsrsbhAndTime(vo);
|
||||||
|
return R.ok(qyfxmxList);
|
||||||
|
}
|
||||||
|
|
||||||
@PostMapping("/queryByDjxhAndTime")
|
@PostMapping("/queryByDjxhAndTime")
|
||||||
@ApiOperation("根据登记序号和月份(选填)查询")
|
@ApiOperation("根据登记序号和月份(选填)查询")
|
||||||
public Result<List<CrmQyfxmx>> queryByDjxhAndTime(@RequestBody CrmParamAndTimeVO vo){
|
public Result<List<CrmQyfxmx>> queryByDjxhAndTime(@RequestBody CrmParamAndTimeVO vo){
|
||||||
List<CrmQyfxmx> qyfxmxList = crmQyfxmxService.getQyfxmxListByParamAndTime(vo);
|
List<CrmQyfxmx> qyfxmxList = crmQyfxmxService.getQyfxmxListByDjxhAndTime(vo);
|
||||||
return R.ok(qyfxmxList);
|
return R.ok(qyfxmxList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/qyjxfp")
|
@RequestMapping("/crmQyjxfp")
|
||||||
@Api(tags = "企业进项发票信息")
|
@Api(tags = "企业进项发票信息")
|
||||||
public class CrmQyjxfpController {
|
public class CrmQyjxfpController {
|
||||||
|
|
||||||
|
|
@ -29,10 +29,17 @@ public class CrmQyjxfpController {
|
||||||
return R.ok(qyjxfp);
|
return R.ok(qyjxfp);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/queryMergeListByParamAndTime")
|
@PostMapping("/queryMergeListByNsrsbhAndTime")
|
||||||
@ApiOperation("通过社会信用代码和年度(选填),查询企业进项发票和企业销项发票信息列表")
|
@ApiOperation("通过纳税人识别号和年度(选填),查询企业进项发票和企业销项发票信息列表")
|
||||||
public Result queryMergeListByParamAndTime(@RequestBody CrmParamAndTimeVO vo){
|
public Result queryMergeListByNsrsbhAndTime(@RequestBody CrmParamAndTimeVO vo){
|
||||||
CrmMergeListVO mergeList = crmQyjxfpService.getMergeListByParamAndTime(vo);
|
CrmMergeListVO mergeList = crmQyjxfpService.getMergeListByNsrsbhAndTime(vo);
|
||||||
|
return R.ok(mergeList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping("/queryMergeListByShxydmAndTime")
|
||||||
|
@ApiOperation("通过纳税人识别号和年度(选填),查询企业进项发票和企业销项发票信息列表")
|
||||||
|
public Result queryMergeListByShxydmAndTime(@RequestBody CrmParamAndTimeVO vo){
|
||||||
|
CrmMergeListVO mergeList = crmQyjxfpService.getMergeListByShxydmAndTime(vo);
|
||||||
return R.ok(mergeList);
|
return R.ok(mergeList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/qynsrdj")
|
@RequestMapping("/crmQynsrdj")
|
||||||
@Api(tags = "企业纳税信用登记信息")
|
@Api(tags = "企业纳税信用登记信息")
|
||||||
public class CrmQynsrdjController {
|
public class CrmQynsrdjController {
|
||||||
|
|
||||||
|
|
@ -31,10 +31,17 @@ public class CrmQynsrdjController {
|
||||||
return R.ok(qynsrdj);
|
return R.ok(qynsrdj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("/queryByNsrsbhAndTime")
|
||||||
|
@ApiOperation("根据纳税人识别号和评价年度(选填)查询")
|
||||||
|
public Result<List<CrmQynsrdj>> queryByNsrsbhAndTime(@RequestBody CrmParamAndTimeVO vo) {
|
||||||
|
List<CrmQynsrdj> qynsrdjList = crmQynsrdjService.getQynsrdjListByNsrsbhAndTime(vo);
|
||||||
|
return R.ok(qynsrdjList);
|
||||||
|
}
|
||||||
|
|
||||||
@PostMapping("/queryByDjxhAndTime")
|
@PostMapping("/queryByDjxhAndTime")
|
||||||
@ApiOperation("根据登记序号和评价年度(选填)查询")
|
@ApiOperation("根据登记序号和评价年度(选填)查询")
|
||||||
public Result<List<CrmQynsrdj>> queryByDjxhAndTime(@RequestBody CrmParamAndTimeVO vo) {
|
public Result<List<CrmQynsrdj>> queryByDjxhAndTime(@RequestBody CrmParamAndTimeVO vo) {
|
||||||
List<CrmQynsrdj> qynsrdjList = crmQynsrdjService.getQynsrdjListByParamAndTime(vo);
|
List<CrmQynsrdj> qynsrdjList = crmQynsrdjService.getQynsrdjListByDjxhAndTime(vo);
|
||||||
return R.ok(qynsrdjList);
|
return R.ok(qynsrdjList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.*;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/qysdsndsb")
|
@RequestMapping("/crmQysdsndsb")
|
||||||
@Api(tags = "企业所得税年度申报信息")
|
@Api(tags = "企业所得税年度申报信息")
|
||||||
public class CrmQysdsndsbController {
|
public class CrmQysdsndsbController {
|
||||||
|
|
||||||
|
|
@ -30,10 +30,17 @@ public class CrmQysdsndsbController {
|
||||||
return R.ok(qysdsndsb);
|
return R.ok(qysdsndsb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("/queryByNsrsbhAndTime")
|
||||||
|
@ApiOperation("根据纳税人识别号和年度(选填)查询")
|
||||||
|
public Result<List<CrmQysdsndsb>> queryByNsrsbhAndTime(@RequestBody CrmParamAndTimeVO vo) {
|
||||||
|
List<CrmQysdsndsb> qysdsndsbList = crmQysdsndsbService.getQysdsndsbListByNsrsbhAndTime(vo);
|
||||||
|
return R.ok(qysdsndsbList);
|
||||||
|
}
|
||||||
|
|
||||||
@PostMapping("/queryByDjxhAndTime")
|
@PostMapping("/queryByDjxhAndTime")
|
||||||
@ApiOperation("根据登记序号和年度(选填)查询")
|
@ApiOperation("根据纳税人识别号和年度(选填)查询")
|
||||||
public Result<List<CrmQysdsndsb>> queryByDjxhAndTime(@RequestBody CrmParamAndTimeVO vo) {
|
public Result<List<CrmQysdsndsb>> queryByDjxhAndTime(@RequestBody CrmParamAndTimeVO vo) {
|
||||||
List<CrmQysdsndsb> qysdsndsbList = crmQysdsndsbService.getQysdsndsbListByParamAndTime(vo);
|
List<CrmQysdsndsb> qysdsndsbList = crmQysdsndsbService.getQysdsndsbListByDjxhAndTime(vo);
|
||||||
return R.ok(qysdsndsbList);
|
return R.ok(qysdsndsbList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/qysfl")
|
@RequestMapping("/crmQysfl")
|
||||||
@Api(tags = "企业税负率信息")
|
@Api(tags = "企业税负率信息")
|
||||||
public class CrmQysflController {
|
public class CrmQysflController {
|
||||||
|
|
||||||
|
|
@ -34,7 +34,14 @@ public class CrmQysflController {
|
||||||
@PostMapping("/queryByDjxhAndTime")
|
@PostMapping("/queryByDjxhAndTime")
|
||||||
@ApiOperation("根据登记序号和评价年度(选填)查询")
|
@ApiOperation("根据登记序号和评价年度(选填)查询")
|
||||||
public Result<List<CrmQysfl>> queryByDjxhAndTime(@RequestBody CrmParamAndTimeVO vo){
|
public Result<List<CrmQysfl>> queryByDjxhAndTime(@RequestBody CrmParamAndTimeVO vo){
|
||||||
List<CrmQysfl> qysflList = crmQysflService.getQysflByParamAndTimeList(vo);
|
List<CrmQysfl> qysflList = crmQysflService.getQysflByDjxhAndTimeList(vo);
|
||||||
|
return R.ok(qysflList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping("/queryByNsrsbhAndTime")
|
||||||
|
@ApiOperation("根据纳税人识别号和评价年度(选填)查询")
|
||||||
|
public Result<List<CrmQysfl>> queryByNsrsbhAndTime(@RequestBody CrmParamAndTimeVO vo){
|
||||||
|
List<CrmQysfl> qysflList = crmQysflService.getQysflByNsrsbhAndTimeList(vo);
|
||||||
return R.ok(qysflList);
|
return R.ok(qysflList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,13 @@ public interface ICrmNsrzgService extends BaseService<CrmNsrzg> {
|
||||||
*/
|
*/
|
||||||
List<CrmNsrzg> getNsrzgList(CrmNsrzg crmNsrzg);
|
List<CrmNsrzg> getNsrzgList(CrmNsrzg crmNsrzg);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据纳税人识别号查询纳税人资格信息
|
||||||
|
* @param nsrsbh
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
CrmNsrzg getNsrzgByNsrsbh(String nsrsbh);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据登记序号查询纳税人资格信息
|
* 根据登记序号查询纳税人资格信息
|
||||||
* @param djxh
|
* @param djxh
|
||||||
|
|
|
||||||
|
|
@ -41,9 +41,16 @@ public interface ICrmQycbrsService extends BaseService<CrmQycbrs> {
|
||||||
List<CrmQycbrs> getQycbrsList(CrmQycbrs crmQycbrs);
|
List<CrmQycbrs> getQycbrsList(CrmQycbrs crmQycbrs);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据等级序号和月份(选填)查询企业参保人数信息列表
|
* 根据纳税人识别号和月份(选填)查询企业参保人数信息列表
|
||||||
* @param vo
|
* @param vo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<CrmQycbrs> getQycbrsListByParamAndTime(CrmParamAndTimeVO vo);
|
List<CrmQycbrs> getQycbrsListByNsrsbhAndTime(CrmParamAndTimeVO vo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据登记序号和月份(选填)查询企业参保人数信息列表
|
||||||
|
* @param vo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<CrmQycbrs> getQycbrsListByDjxhAndTime(CrmParamAndTimeVO vo);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,10 +41,17 @@ public interface ICrmQyfxmxService extends BaseService<CrmQyfxmx> {
|
||||||
*/
|
*/
|
||||||
List<CrmQyfxmx> getQyfxmxList(CrmQyfxmx crmQyfxmx);
|
List<CrmQyfxmx> getQyfxmxList(CrmQyfxmx crmQyfxmx);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过纳税人识别号和月份(选填)查询企业风险明细信息列表
|
||||||
|
* @param vo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<CrmQyfxmx> getQyfxmxListByNsrsbhAndTime(CrmParamAndTimeVO vo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过登记序号和月份(选填)查询企业风险明细信息列表
|
* 通过登记序号和月份(选填)查询企业风险明细信息列表
|
||||||
* @param vo
|
* @param vo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<CrmQyfxmx> getQyfxmxListByParamAndTime(CrmParamAndTimeVO vo);
|
List<CrmQyfxmx> getQyfxmxListByDjxhAndTime(CrmParamAndTimeVO vo);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,10 +42,17 @@ public interface ICrmQyjxfpService extends BaseService<CrmQyjxfp> {
|
||||||
*/
|
*/
|
||||||
List<CrmQyjxfp> getQyjxfpList(CrmQyjxfp crmQyjxfp);
|
List<CrmQyjxfp> getQyjxfpList(CrmQyjxfp crmQyjxfp);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过纳税人识别号和年度(选填),查询企业进项发票和企业销项发票信息列表
|
||||||
|
* @param vo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
CrmMergeListVO getMergeListByNsrsbhAndTime(CrmParamAndTimeVO vo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过社会信用代码和年度(选填),查询企业进项发票和企业销项发票信息列表
|
* 通过社会信用代码和年度(选填),查询企业进项发票和企业销项发票信息列表
|
||||||
* @param vo
|
* @param vo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
CrmMergeListVO getMergeListByParamAndTime(CrmParamAndTimeVO vo);
|
CrmMergeListVO getMergeListByShxydmAndTime(CrmParamAndTimeVO vo);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,10 +41,17 @@ public interface ICrmQynsrdjService extends BaseService<CrmQynsrdj> {
|
||||||
*/
|
*/
|
||||||
List<CrmQynsrdj> getQynsrdjList(CrmQynsrdj crmQynsrdj);
|
List<CrmQynsrdj> getQynsrdjList(CrmQynsrdj crmQynsrdj);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据纳税人识别号和评价年度(选填)查询
|
||||||
|
* @param vo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<CrmQynsrdj> getQynsrdjListByNsrsbhAndTime(CrmParamAndTimeVO vo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据登记序号和评价年度(选填)查询
|
* 根据登记序号和评价年度(选填)查询
|
||||||
* @param vo
|
* @param vo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<CrmQynsrdj> getQynsrdjListByParamAndTime(CrmParamAndTimeVO vo);
|
List<CrmQynsrdj> getQynsrdjListByDjxhAndTime(CrmParamAndTimeVO vo);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,10 +43,17 @@ public interface ICrmQysdsndsbService extends BaseService<CrmQysdsndsb> {
|
||||||
List<CrmQysdsndsb> getQysdsndsbList(CrmQysdsndsb crmQysdsndsb);
|
List<CrmQysdsndsb> getQysdsndsbList(CrmQysdsndsb crmQysdsndsb);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据纳税人识别号和年度查询年度(选填)申报信息列表
|
||||||
|
* @param vo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<CrmQysdsndsb> getQysdsndsbListByNsrsbhAndTime(CrmParamAndTimeVO vo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据登记序号和年度查询年度(选填)申报信息列表
|
* 根据登记序号和年度查询年度(选填)申报信息列表
|
||||||
* @param vo
|
* @param vo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<CrmQysdsndsb> getQysdsndsbListByParamAndTime(CrmParamAndTimeVO vo);
|
List<CrmQysdsndsb> getQysdsndsbListByDjxhAndTime(CrmParamAndTimeVO vo);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,10 +41,17 @@ public interface ICrmQysflService extends BaseService<CrmQysfl> {
|
||||||
*/
|
*/
|
||||||
List<CrmQysfl> getQysflList(CrmQysfl crmQysfl);
|
List<CrmQysfl> getQysflList(CrmQysfl crmQysfl);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据纳税人识别号和月份(月份)
|
||||||
|
* @param vo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<CrmQysfl> getQysflByNsrsbhAndTimeList(CrmParamAndTimeVO vo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据登记序号和月份(月份)
|
* 根据登记序号和月份(月份)
|
||||||
* @param vo
|
* @param vo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<CrmQysfl> getQysflByParamAndTimeList(CrmParamAndTimeVO vo);
|
List<CrmQysfl> getQysflByDjxhAndTimeList(CrmParamAndTimeVO vo);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,10 +42,17 @@ public interface ICrmQyxxfpService extends BaseService<CrmQyxxfp> {
|
||||||
List<CrmQyxxfp> getQyxxfpList(CrmQyxxfp crmQyxxfp);
|
List<CrmQyxxfp> getQyxxfpList(CrmQyxxfp crmQyxxfp);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过纳税人识别号和年度(选填)查询企业销项发票信息
|
||||||
|
* @param vo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<CrmQyxxfp> getQyxxfpListByNsrsbhAndTime(CrmParamAndTimeVO vo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过社会信用代码和年度(选填)查询企业销项发票信息
|
* 通过社会信用代码和年度(选填)查询企业销项发票信息
|
||||||
* @param vo
|
* @param vo
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<CrmQyxxfp> getQyxxfpListByParamAndTime(CrmParamAndTimeVO vo);
|
List<CrmQyxxfp> getQyxxfpListByShxydmAndTime(CrmParamAndTimeVO vo);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,9 @@ package com.kakarote.crm.service.impl;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.kakarote.core.servlet.BaseServiceImpl;
|
import com.kakarote.core.servlet.BaseServiceImpl;
|
||||||
import com.kakarote.crm.entity.PO.CrmNsrzg;
|
import com.kakarote.crm.entity.PO.CrmNsrzg;
|
||||||
|
import com.kakarote.crm.entity.PO.CrmQyjbxx;
|
||||||
import com.kakarote.crm.mapper.CrmNsrzgMapper;
|
import com.kakarote.crm.mapper.CrmNsrzgMapper;
|
||||||
|
import com.kakarote.crm.mapper.CrmQyjbxxMapper;
|
||||||
import com.kakarote.crm.service.ICrmNsrzgService;
|
import com.kakarote.crm.service.ICrmNsrzgService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -15,6 +17,9 @@ public class CrmNsrzgServiceImpl extends BaseServiceImpl<CrmNsrzgMapper, CrmNsrz
|
||||||
@Autowired
|
@Autowired
|
||||||
private CrmNsrzgMapper crmNsrzgMapper;
|
private CrmNsrzgMapper crmNsrzgMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private CrmQyjbxxMapper crmQyjbxxMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CrmNsrzg getNsrzg(Integer nsrdjzgId) {
|
public CrmNsrzg getNsrzg(Integer nsrdjzgId) {
|
||||||
return crmNsrzgMapper.selectById(nsrdjzgId);
|
return crmNsrzgMapper.selectById(nsrdjzgId);
|
||||||
|
|
@ -41,10 +46,28 @@ public class CrmNsrzgServiceImpl extends BaseServiceImpl<CrmNsrzgMapper, CrmNsrz
|
||||||
return crmNsrzgMapper.selectList(queryWrapper);
|
return crmNsrzgMapper.selectList(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public CrmNsrzg getNsrzgByNsrsbh(String nsrsbh) {
|
||||||
|
|
||||||
|
CrmQyjbxx crmQyjbxx = crmQyjbxxMapper.selectOne(new QueryWrapper<CrmQyjbxx>()
|
||||||
|
.select("djxh")
|
||||||
|
.eq("nsrsbh", nsrsbh)
|
||||||
|
);
|
||||||
|
|
||||||
|
if (crmQyjbxx == null || crmQyjbxx.getDjxh() == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return crmNsrzgMapper.selectOne(new QueryWrapper<CrmNsrzg>()
|
||||||
|
.eq("djxh", crmQyjbxx.getDjxh())
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CrmNsrzg getNsrzgByDjxh(String djxh) {
|
public CrmNsrzg getNsrzgByDjxh(String djxh) {
|
||||||
QueryWrapper<CrmNsrzg> queryWrapper = new QueryWrapper<>();
|
|
||||||
queryWrapper.eq("djxh", djxh);
|
return crmNsrzgMapper.selectOne(new QueryWrapper<CrmNsrzg>()
|
||||||
return crmNsrzgMapper.selectOne(queryWrapper);
|
.eq("djxh", djxh)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,10 @@ package com.kakarote.crm.service.impl;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.kakarote.core.servlet.BaseServiceImpl;
|
import com.kakarote.core.servlet.BaseServiceImpl;
|
||||||
import com.kakarote.crm.entity.PO.CrmQycbrs;
|
import com.kakarote.crm.entity.PO.CrmQycbrs;
|
||||||
|
import com.kakarote.crm.entity.PO.CrmQyjbxx;
|
||||||
import com.kakarote.crm.entity.VO.CrmParamAndTimeVO;
|
import com.kakarote.crm.entity.VO.CrmParamAndTimeVO;
|
||||||
import com.kakarote.crm.mapper.CrmQycbrsMapper;
|
import com.kakarote.crm.mapper.CrmQycbrsMapper;
|
||||||
|
import com.kakarote.crm.mapper.CrmQyjbxxMapper;
|
||||||
import com.kakarote.crm.service.ICrmQycbrsService;
|
import com.kakarote.crm.service.ICrmQycbrsService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -18,6 +20,9 @@ public class CrmQycbrsServiceImpl extends BaseServiceImpl<CrmQycbrsMapper, CrmQy
|
||||||
@Autowired
|
@Autowired
|
||||||
private CrmQycbrsMapper crmQycbrsMapper;
|
private CrmQycbrsMapper crmQycbrsMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private CrmQyjbxxMapper crmQyjbxxMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CrmQycbrs getQycbrs(Integer qycbrsId) {
|
public CrmQycbrs getQycbrs(Integer qycbrsId) {
|
||||||
return crmQycbrsMapper.selectById(qycbrsId);
|
return crmQycbrsMapper.selectById(qycbrsId);
|
||||||
|
|
@ -45,12 +50,38 @@ public class CrmQycbrsServiceImpl extends BaseServiceImpl<CrmQycbrsMapper, CrmQy
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CrmQycbrs> getQycbrsListByParamAndTime(CrmParamAndTimeVO vo) {
|
public List<CrmQycbrs> getQycbrsListByDjxhAndTime(CrmParamAndTimeVO vo) {
|
||||||
|
|
||||||
QueryWrapper<CrmQycbrs> wrapper = new QueryWrapper<>();
|
QueryWrapper<CrmQycbrs> wrapper = new QueryWrapper<>();
|
||||||
wrapper.eq("djxh", vo.getParam());
|
wrapper.eq("djxh", vo.getParam());
|
||||||
|
|
||||||
if (vo.getTime() != null) {
|
if (vo.getTime() != null && !vo.getTime().isEmpty()) {
|
||||||
|
wrapper.eq("yf", vo.getTime());
|
||||||
|
CrmQycbrs qycbrs = crmQycbrsMapper.selectOne(wrapper);
|
||||||
|
return qycbrs != null ?
|
||||||
|
Collections.singletonList(qycbrs) :
|
||||||
|
Collections.emptyList();
|
||||||
|
}
|
||||||
|
|
||||||
|
return crmQycbrsMapper.selectList(wrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<CrmQycbrs> getQycbrsListByNsrsbhAndTime(CrmParamAndTimeVO vo) {
|
||||||
|
|
||||||
|
CrmQyjbxx crmQyjbxx = crmQyjbxxMapper.selectOne(new QueryWrapper<CrmQyjbxx>()
|
||||||
|
.select("djxh")
|
||||||
|
.eq("nsrsbh", vo.getParam())
|
||||||
|
);
|
||||||
|
|
||||||
|
if (crmQyjbxx == null || crmQyjbxx.getDjxh() == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryWrapper<CrmQycbrs> wrapper = new QueryWrapper<>();
|
||||||
|
wrapper.eq("djxh", crmQyjbxx.getDjxh());
|
||||||
|
|
||||||
|
if (vo.getTime() != null && !vo.getTime().isEmpty()) {
|
||||||
wrapper.eq("yf", vo.getTime());
|
wrapper.eq("yf", vo.getTime());
|
||||||
CrmQycbrs qycbrs = crmQycbrsMapper.selectOne(wrapper);
|
CrmQycbrs qycbrs = crmQycbrsMapper.selectOne(wrapper);
|
||||||
return qycbrs != null ?
|
return qycbrs != null ?
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,10 @@ package com.kakarote.crm.service.impl;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.kakarote.core.servlet.BaseServiceImpl;
|
import com.kakarote.core.servlet.BaseServiceImpl;
|
||||||
import com.kakarote.crm.entity.PO.CrmQyfxmx;
|
import com.kakarote.crm.entity.PO.CrmQyfxmx;
|
||||||
|
import com.kakarote.crm.entity.PO.CrmQyjbxx;
|
||||||
import com.kakarote.crm.entity.VO.CrmParamAndTimeVO;
|
import com.kakarote.crm.entity.VO.CrmParamAndTimeVO;
|
||||||
import com.kakarote.crm.mapper.CrmQyfxmxMapper;
|
import com.kakarote.crm.mapper.CrmQyfxmxMapper;
|
||||||
|
import com.kakarote.crm.mapper.CrmQyjbxxMapper;
|
||||||
import com.kakarote.crm.service.ICrmQyfxmxService;
|
import com.kakarote.crm.service.ICrmQyfxmxService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -18,6 +20,9 @@ public class CrmQyfxmxServiceImpl extends BaseServiceImpl<CrmQyfxmxMapper, CrmQy
|
||||||
@Autowired
|
@Autowired
|
||||||
private CrmQyfxmxMapper crmQyfxmxMapper;
|
private CrmQyfxmxMapper crmQyfxmxMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private CrmQyjbxxMapper crmQyjbxxMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过id查询企业指标明细
|
* 通过id查询企业指标明细
|
||||||
* @param qyfxmxId
|
* @param qyfxmxId
|
||||||
|
|
@ -70,12 +75,38 @@ public class CrmQyfxmxServiceImpl extends BaseServiceImpl<CrmQyfxmxMapper, CrmQy
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CrmQyfxmx> getQyfxmxListByParamAndTime(CrmParamAndTimeVO vo) {
|
public List<CrmQyfxmx> getQyfxmxListByDjxhAndTime(CrmParamAndTimeVO vo) {
|
||||||
|
|
||||||
QueryWrapper<CrmQyfxmx> wrapper = new QueryWrapper<>();
|
QueryWrapper<CrmQyfxmx> wrapper = new QueryWrapper<>();
|
||||||
wrapper.eq("djxh", vo.getParam());
|
wrapper.eq("djxh", vo.getParam());
|
||||||
|
|
||||||
if (vo.getTime() != null) {
|
if (vo.getTime() != null && !vo.getTime().isEmpty()) {
|
||||||
|
wrapper.eq("yf", vo.getTime());
|
||||||
|
CrmQyfxmx qyfxmx = crmQyfxmxMapper.selectOne(wrapper);
|
||||||
|
return qyfxmx != null ?
|
||||||
|
Collections.singletonList(qyfxmx) :
|
||||||
|
Collections.emptyList();
|
||||||
|
}
|
||||||
|
|
||||||
|
return crmQyfxmxMapper.selectList(wrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<CrmQyfxmx> getQyfxmxListByNsrsbhAndTime(CrmParamAndTimeVO vo) {
|
||||||
|
|
||||||
|
CrmQyjbxx crmQyjbxx = crmQyjbxxMapper.selectOne(new QueryWrapper<CrmQyjbxx>()
|
||||||
|
.select("djxh")
|
||||||
|
.eq("nsrsbh", vo.getParam())
|
||||||
|
);
|
||||||
|
|
||||||
|
if (crmQyjbxx == null || crmQyjbxx.getDjxh() == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryWrapper<CrmQyfxmx> wrapper = new QueryWrapper<>();
|
||||||
|
wrapper.eq("djxh", crmQyjbxx.getDjxh());
|
||||||
|
|
||||||
|
if (vo.getTime() != null && !vo.getTime().isEmpty()) {
|
||||||
wrapper.eq("yf", vo.getTime());
|
wrapper.eq("yf", vo.getTime());
|
||||||
CrmQyfxmx qyfxmx = crmQyfxmxMapper.selectOne(wrapper);
|
CrmQyfxmx qyfxmx = crmQyfxmxMapper.selectOne(wrapper);
|
||||||
return qyfxmx != null ?
|
return qyfxmx != null ?
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,12 @@ package com.kakarote.crm.service.impl;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.kakarote.core.servlet.BaseServiceImpl;
|
import com.kakarote.core.servlet.BaseServiceImpl;
|
||||||
|
import com.kakarote.crm.entity.PO.CrmQyjbxx;
|
||||||
import com.kakarote.crm.entity.PO.CrmQyjxfp;
|
import com.kakarote.crm.entity.PO.CrmQyjxfp;
|
||||||
import com.kakarote.crm.entity.PO.CrmQyxxfp;
|
import com.kakarote.crm.entity.PO.CrmQyxxfp;
|
||||||
import com.kakarote.crm.entity.VO.CrmMergeListVO;
|
import com.kakarote.crm.entity.VO.CrmMergeListVO;
|
||||||
import com.kakarote.crm.entity.VO.CrmParamAndTimeVO;
|
import com.kakarote.crm.entity.VO.CrmParamAndTimeVO;
|
||||||
|
import com.kakarote.crm.mapper.CrmQyjbxxMapper;
|
||||||
import com.kakarote.crm.mapper.CrmQyjxfpMapper;
|
import com.kakarote.crm.mapper.CrmQyjxfpMapper;
|
||||||
import com.kakarote.crm.service.ICrmQyjxfpService;
|
import com.kakarote.crm.service.ICrmQyjxfpService;
|
||||||
import com.kakarote.crm.service.ICrmQyxxfpService;
|
import com.kakarote.crm.service.ICrmQyxxfpService;
|
||||||
|
|
@ -23,6 +25,9 @@ public class CrmQyjxfpServiceImpl extends BaseServiceImpl<CrmQyjxfpMapper, CrmQy
|
||||||
@Autowired
|
@Autowired
|
||||||
private ICrmQyxxfpService crmQyxxfpService;
|
private ICrmQyxxfpService crmQyxxfpService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private CrmQyjbxxMapper crmQyjbxxMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过id查询企业进项发票
|
* 通过id查询企业进项发票
|
||||||
*
|
*
|
||||||
|
|
@ -79,22 +84,18 @@ public class CrmQyjxfpServiceImpl extends BaseServiceImpl<CrmQyjxfpMapper, CrmQy
|
||||||
return crmQyjxfpMapper.selectList(crmQyjxfpQueryWrapper);
|
return crmQyjxfpMapper.selectList(crmQyjxfpQueryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过社会信用代码和年度(选填),查询企业进项发票和企业销项发票信息列表
|
|
||||||
* @param vo
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public CrmMergeListVO getMergeListByParamAndTime(CrmParamAndTimeVO vo) {
|
public CrmMergeListVO getMergeListByShxydmAndTime(CrmParamAndTimeVO vo) {
|
||||||
|
|
||||||
CrmMergeListVO mergeListVO = new CrmMergeListVO();
|
CrmMergeListVO mergeListVO = new CrmMergeListVO();
|
||||||
|
|
||||||
// 创建基础QueryWrapper(公共条件)
|
|
||||||
QueryWrapper<CrmQyjxfp> wrapper = new QueryWrapper<>();
|
QueryWrapper<CrmQyjxfp> wrapper = new QueryWrapper<>();
|
||||||
wrapper.eq("shxydm", vo.getParam());
|
wrapper.eq("shxydm", vo.getParam());
|
||||||
|
|
||||||
|
System.out.println(vo.getTime());
|
||||||
|
|
||||||
// 根据时间条件处理进项发票查询
|
// 根据时间条件处理进项发票查询
|
||||||
if (vo.getTime() != null) {
|
if (vo.getTime() != null && !vo.getTime().isEmpty()) {
|
||||||
// 添加时间条件
|
// 添加时间条件
|
||||||
wrapper.eq("nd", vo.getTime());
|
wrapper.eq("nd", vo.getTime());
|
||||||
CrmQyjxfp qyjxfp = crmQyjxfpMapper.selectOne(wrapper);
|
CrmQyjxfp qyjxfp = crmQyjxfpMapper.selectOne(wrapper);
|
||||||
|
|
@ -107,7 +108,53 @@ public class CrmQyjxfpServiceImpl extends BaseServiceImpl<CrmQyjxfpMapper, CrmQy
|
||||||
}
|
}
|
||||||
|
|
||||||
// 处理销项发票查询
|
// 处理销项发票查询
|
||||||
List<CrmQyxxfp> qyxxfpList = crmQyxxfpService.getQyxxfpListByParamAndTime(vo);
|
List<CrmQyxxfp> qyxxfpList = crmQyxxfpService.getQyxxfpListByShxydmAndTime(vo);
|
||||||
|
mergeListVO.setQyxxfpList(qyxxfpList);
|
||||||
|
|
||||||
|
return mergeListVO;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过社会信用代码和年度(选填),查询企业进项发票和企业销项发票信息列表
|
||||||
|
* @param vo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public CrmMergeListVO getMergeListByNsrsbhAndTime(CrmParamAndTimeVO vo) {
|
||||||
|
|
||||||
|
CrmMergeListVO mergeListVO = new CrmMergeListVO();
|
||||||
|
|
||||||
|
CrmQyjbxx crmQyjbxx = crmQyjbxxMapper.selectOne(new QueryWrapper<CrmQyjbxx>()
|
||||||
|
.select("shxydm")
|
||||||
|
.eq("nsrsbh", vo.getParam())
|
||||||
|
);
|
||||||
|
|
||||||
|
if (crmQyjbxx == null || crmQyjbxx.getShxydm() == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
System.out.println(crmQyjbxx.getShxydm());
|
||||||
|
// 创建基础QueryWrapper(公共条件)
|
||||||
|
QueryWrapper<CrmQyjxfp> wrapper = new QueryWrapper<>();
|
||||||
|
wrapper.eq("shxydm", crmQyjbxx.getShxydm());
|
||||||
|
|
||||||
|
System.out.println(vo.getTime());
|
||||||
|
|
||||||
|
// 根据时间条件处理进项发票查询
|
||||||
|
if (vo.getTime() != null && !vo.getTime().isEmpty()) {
|
||||||
|
// 添加时间条件
|
||||||
|
wrapper.eq("nd", vo.getTime());
|
||||||
|
CrmQyjxfp qyjxfp = crmQyjxfpMapper.selectOne(wrapper);
|
||||||
|
mergeListVO.setQyjxfpList(qyjxfp != null ?
|
||||||
|
Collections.singletonList(qyjxfp) :
|
||||||
|
Collections.emptyList());
|
||||||
|
} else {
|
||||||
|
// 无时间条件时直接查询列表
|
||||||
|
mergeListVO.setQyjxfpList(crmQyjxfpMapper.selectList(wrapper));
|
||||||
|
}
|
||||||
|
|
||||||
|
// 处理销项发票查询
|
||||||
|
List<CrmQyxxfp> qyxxfpList = crmQyxxfpService.getQyxxfpListByNsrsbhAndTime(vo);
|
||||||
mergeListVO.setQyxxfpList(qyxxfpList);
|
mergeListVO.setQyxxfpList(qyxxfpList);
|
||||||
|
|
||||||
return mergeListVO;
|
return mergeListVO;
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,10 @@ package com.kakarote.crm.service.impl;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.kakarote.core.servlet.BaseServiceImpl;
|
import com.kakarote.core.servlet.BaseServiceImpl;
|
||||||
|
import com.kakarote.crm.entity.PO.CrmQyjbxx;
|
||||||
import com.kakarote.crm.entity.PO.CrmQynsrdj;
|
import com.kakarote.crm.entity.PO.CrmQynsrdj;
|
||||||
import com.kakarote.crm.entity.VO.CrmParamAndTimeVO;
|
import com.kakarote.crm.entity.VO.CrmParamAndTimeVO;
|
||||||
|
import com.kakarote.crm.mapper.CrmQyjbxxMapper;
|
||||||
import com.kakarote.crm.mapper.CrmQynsrdjMapper;
|
import com.kakarote.crm.mapper.CrmQynsrdjMapper;
|
||||||
import com.kakarote.crm.service.ICrmQynsrdjService;
|
import com.kakarote.crm.service.ICrmQynsrdjService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
@ -18,6 +20,9 @@ public class CrmQynsrdjServiceImpl extends BaseServiceImpl<CrmQynsrdjMapper, Crm
|
||||||
@Autowired
|
@Autowired
|
||||||
private CrmQynsrdjMapper crmQynsrdjMapper;
|
private CrmQynsrdjMapper crmQynsrdjMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private CrmQyjbxxMapper crmQyjbxxMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CrmQynsrdj getQynsrdj(Integer qynsxydjId) {
|
public CrmQynsrdj getQynsrdj(Integer qynsxydjId) {
|
||||||
return crmQynsrdjMapper.selectById(qynsxydjId);
|
return crmQynsrdjMapper.selectById(qynsxydjId);
|
||||||
|
|
@ -46,13 +51,41 @@ public class CrmQynsrdjServiceImpl extends BaseServiceImpl<CrmQynsrdjMapper, Crm
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CrmQynsrdj> getQynsrdjListByParamAndTime(CrmParamAndTimeVO vo){
|
public List<CrmQynsrdj> getQynsrdjListByNsrsbhAndTime(CrmParamAndTimeVO vo){
|
||||||
|
|
||||||
|
CrmQyjbxx crmQyjbxx = crmQyjbxxMapper.selectOne(new QueryWrapper<CrmQyjbxx>()
|
||||||
|
.select("djxh")
|
||||||
|
.eq("nsrsbh", vo.getParam())
|
||||||
|
);
|
||||||
|
|
||||||
|
if (crmQyjbxx == null || crmQyjbxx.getDjxh() == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryWrapper<CrmQynsrdj> wrapper = new QueryWrapper<>();
|
||||||
|
wrapper.eq("djxh", crmQyjbxx.getDjxh());
|
||||||
|
|
||||||
|
// 当时间参数存在时添加时间条件并返回单条结果
|
||||||
|
if (vo.getTime() != null && !vo.getTime().isEmpty()) {
|
||||||
|
wrapper.eq("pjnd", vo.getTime());
|
||||||
|
CrmQynsrdj entity = crmQynsrdjMapper.selectOne(wrapper);
|
||||||
|
return entity != null ?
|
||||||
|
Collections.singletonList(entity) :
|
||||||
|
Collections.emptyList();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 无时间参数时返回匹配的所有记录
|
||||||
|
return crmQynsrdjMapper.selectList(wrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<CrmQynsrdj> getQynsrdjListByDjxhAndTime(CrmParamAndTimeVO vo) {
|
||||||
|
|
||||||
QueryWrapper<CrmQynsrdj> wrapper = new QueryWrapper<>();
|
QueryWrapper<CrmQynsrdj> wrapper = new QueryWrapper<>();
|
||||||
wrapper.eq("djxh", vo.getParam());
|
wrapper.eq("djxh", vo.getParam());
|
||||||
|
|
||||||
// 当时间参数存在时添加时间条件并返回单条结果
|
// 当时间参数存在时添加时间条件并返回单条结果
|
||||||
if (vo.getTime() != null) {
|
if (vo.getTime() != null && !vo.getTime().isEmpty()) {
|
||||||
wrapper.eq("pjnd", vo.getTime());
|
wrapper.eq("pjnd", vo.getTime());
|
||||||
CrmQynsrdj entity = crmQynsrdjMapper.selectOne(wrapper);
|
CrmQynsrdj entity = crmQynsrdjMapper.selectOne(wrapper);
|
||||||
return entity != null ?
|
return entity != null ?
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,10 @@ package com.kakarote.crm.service.impl;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.kakarote.core.servlet.BaseServiceImpl;
|
import com.kakarote.core.servlet.BaseServiceImpl;
|
||||||
|
import com.kakarote.crm.entity.PO.CrmQyjbxx;
|
||||||
import com.kakarote.crm.entity.PO.CrmQysdsndsb;
|
import com.kakarote.crm.entity.PO.CrmQysdsndsb;
|
||||||
import com.kakarote.crm.entity.VO.CrmParamAndTimeVO;
|
import com.kakarote.crm.entity.VO.CrmParamAndTimeVO;
|
||||||
|
import com.kakarote.crm.mapper.CrmQyjbxxMapper;
|
||||||
import com.kakarote.crm.mapper.CrmQysdsndsbMapper;
|
import com.kakarote.crm.mapper.CrmQysdsndsbMapper;
|
||||||
import com.kakarote.crm.service.ICrmQysdsndsbService;
|
import com.kakarote.crm.service.ICrmQysdsndsbService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
@ -19,6 +21,9 @@ public class CrmQysdsndsbServiceImpl extends BaseServiceImpl<CrmQysdsndsbMapper,
|
||||||
@Autowired
|
@Autowired
|
||||||
private CrmQysdsndsbMapper crmQysdsndsbMapper;
|
private CrmQysdsndsbMapper crmQysdsndsbMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private CrmQyjbxxMapper crmQyjbxxMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CrmQysdsndsb getQysdsndsb(Integer qysdsndsbId) {
|
public CrmQysdsndsb getQysdsndsb(Integer qysdsndsbId) {
|
||||||
return crmQysdsndsbMapper.selectById(qysdsndsbId);
|
return crmQysdsndsbMapper.selectById(qysdsndsbId);
|
||||||
|
|
@ -46,12 +51,38 @@ public class CrmQysdsndsbServiceImpl extends BaseServiceImpl<CrmQysdsndsbMapper,
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CrmQysdsndsb> getQysdsndsbListByParamAndTime(CrmParamAndTimeVO vo) {
|
public List<CrmQysdsndsb> getQysdsndsbListByDjxhAndTime(CrmParamAndTimeVO vo) {
|
||||||
|
|
||||||
QueryWrapper<CrmQysdsndsb> wrapper = new QueryWrapper<>();
|
QueryWrapper<CrmQysdsndsb> wrapper = new QueryWrapper<>();
|
||||||
wrapper.eq("djxh", vo.getParam());
|
wrapper.eq("djxh", vo.getParam());
|
||||||
|
|
||||||
if (vo.getTime() != null) {
|
if (vo.getTime() != null && !vo.getTime().isEmpty()) {
|
||||||
|
wrapper.eq("nd", vo.getTime());
|
||||||
|
CrmQysdsndsb qysdsndsb = crmQysdsndsbMapper.selectOne(wrapper);
|
||||||
|
return qysdsndsb != null ?
|
||||||
|
Collections.singletonList(qysdsndsb) :
|
||||||
|
Collections.emptyList();
|
||||||
|
}
|
||||||
|
|
||||||
|
return crmQysdsndsbMapper.selectList(wrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<CrmQysdsndsb> getQysdsndsbListByNsrsbhAndTime(CrmParamAndTimeVO vo) {
|
||||||
|
|
||||||
|
CrmQyjbxx crmQyjbxx = crmQyjbxxMapper.selectOne(new QueryWrapper<CrmQyjbxx>()
|
||||||
|
.select("djxh")
|
||||||
|
.eq("nsrsbh", vo.getParam())
|
||||||
|
);
|
||||||
|
|
||||||
|
if (crmQyjbxx == null || crmQyjbxx.getDjxh() == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryWrapper<CrmQysdsndsb> wrapper = new QueryWrapper<>();
|
||||||
|
wrapper.eq("djxh", crmQyjbxx.getDjxh());
|
||||||
|
|
||||||
|
if (vo.getTime() != null && !vo.getTime().isEmpty()) {
|
||||||
wrapper.eq("nd", vo.getTime());
|
wrapper.eq("nd", vo.getTime());
|
||||||
CrmQysdsndsb qysdsndsb = crmQysdsndsbMapper.selectOne(wrapper);
|
CrmQysdsndsb qysdsndsb = crmQysdsndsbMapper.selectOne(wrapper);
|
||||||
return qysdsndsb != null ?
|
return qysdsndsb != null ?
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,10 @@ package com.kakarote.crm.service.impl;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.kakarote.core.servlet.BaseServiceImpl;
|
import com.kakarote.core.servlet.BaseServiceImpl;
|
||||||
|
import com.kakarote.crm.entity.PO.CrmQyjbxx;
|
||||||
import com.kakarote.crm.entity.PO.CrmQysfl;
|
import com.kakarote.crm.entity.PO.CrmQysfl;
|
||||||
import com.kakarote.crm.entity.VO.CrmParamAndTimeVO;
|
import com.kakarote.crm.entity.VO.CrmParamAndTimeVO;
|
||||||
|
import com.kakarote.crm.mapper.CrmQyjbxxMapper;
|
||||||
import com.kakarote.crm.mapper.CrmQysflMapper;
|
import com.kakarote.crm.mapper.CrmQysflMapper;
|
||||||
import com.kakarote.crm.service.ICrmQysflService;
|
import com.kakarote.crm.service.ICrmQysflService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
@ -18,6 +20,9 @@ public class CrmQysflServiceImpl extends BaseServiceImpl<CrmQysflMapper, CrmQysf
|
||||||
@Autowired
|
@Autowired
|
||||||
private CrmQysflMapper crmQysflMapper;
|
private CrmQysflMapper crmQysflMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private CrmQyjbxxMapper crmQyjbxxMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CrmQysfl getQysfl(Integer qysflId) {
|
public CrmQysfl getQysfl(Integer qysflId) {
|
||||||
return crmQysflMapper.selectById(qysflId);
|
return crmQysflMapper.selectById(qysflId);
|
||||||
|
|
@ -45,12 +50,38 @@ public class CrmQysflServiceImpl extends BaseServiceImpl<CrmQysflMapper, CrmQysf
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CrmQysfl> getQysflByParamAndTimeList(CrmParamAndTimeVO vo) {
|
public List<CrmQysfl> getQysflByDjxhAndTimeList(CrmParamAndTimeVO vo) {
|
||||||
|
|
||||||
QueryWrapper<CrmQysfl> wrapper = new QueryWrapper<>();
|
QueryWrapper<CrmQysfl> wrapper = new QueryWrapper<>();
|
||||||
wrapper.eq("djxh", vo.getParam());
|
wrapper.eq("djxh", vo.getParam());
|
||||||
|
|
||||||
if (vo.getTime() != null) {
|
if (vo.getTime() != null && !vo.getTime().isEmpty()) {
|
||||||
|
wrapper.eq("yf", vo.getTime());
|
||||||
|
CrmQysfl crmQysfl = crmQysflMapper.selectOne(wrapper);
|
||||||
|
return crmQysfl != null ?
|
||||||
|
Collections.singletonList(crmQysfl) :
|
||||||
|
Collections.emptyList();
|
||||||
|
}
|
||||||
|
|
||||||
|
return crmQysflMapper.selectList(wrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<CrmQysfl> getQysflByNsrsbhAndTimeList(CrmParamAndTimeVO vo) {
|
||||||
|
|
||||||
|
CrmQyjbxx crmQyjbxx = crmQyjbxxMapper.selectOne(new QueryWrapper<CrmQyjbxx>()
|
||||||
|
.select("djxh")
|
||||||
|
.eq("nsrsbh", vo.getParam())
|
||||||
|
);
|
||||||
|
|
||||||
|
if (crmQyjbxx == null || crmQyjbxx.getDjxh() == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryWrapper<CrmQysfl> wrapper = new QueryWrapper<>();
|
||||||
|
wrapper.eq("djxh", crmQyjbxx.getDjxh());
|
||||||
|
|
||||||
|
if (vo.getTime() != null && !vo.getTime().isEmpty()) {
|
||||||
wrapper.eq("yf", vo.getTime());
|
wrapper.eq("yf", vo.getTime());
|
||||||
CrmQysfl crmQysfl = crmQysflMapper.selectOne(wrapper);
|
CrmQysfl crmQysfl = crmQysflMapper.selectOne(wrapper);
|
||||||
return crmQysfl != null ?
|
return crmQysfl != null ?
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,11 @@ package com.kakarote.crm.service.impl;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.kakarote.core.servlet.BaseServiceImpl;
|
import com.kakarote.core.servlet.BaseServiceImpl;
|
||||||
|
import com.kakarote.crm.entity.PO.CrmQyjbxx;
|
||||||
import com.kakarote.crm.entity.PO.CrmQyjxfp;
|
import com.kakarote.crm.entity.PO.CrmQyjxfp;
|
||||||
import com.kakarote.crm.entity.PO.CrmQyxxfp;
|
import com.kakarote.crm.entity.PO.CrmQyxxfp;
|
||||||
import com.kakarote.crm.entity.VO.CrmParamAndTimeVO;
|
import com.kakarote.crm.entity.VO.CrmParamAndTimeVO;
|
||||||
|
import com.kakarote.crm.mapper.CrmQyjbxxMapper;
|
||||||
import com.kakarote.crm.mapper.CrmQyxxfpMapper;
|
import com.kakarote.crm.mapper.CrmQyxxfpMapper;
|
||||||
import com.kakarote.crm.service.ICrmQyxxfpService;
|
import com.kakarote.crm.service.ICrmQyxxfpService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
@ -19,6 +21,9 @@ public class CrmQyxxfpServiceImpl extends BaseServiceImpl<CrmQyxxfpMapper, CrmQy
|
||||||
@Autowired
|
@Autowired
|
||||||
private CrmQyxxfpMapper crmQyxxfpMapper;
|
private CrmQyxxfpMapper crmQyxxfpMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private CrmQyjbxxMapper crmQyjbxxMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CrmQyxxfp getQyxxfp(Integer qyxxfpId) {
|
public CrmQyxxfp getQyxxfp(Integer qyxxfpId) {
|
||||||
return crmQyxxfpMapper.selectById(qyxxfpId);
|
return crmQyxxfpMapper.selectById(qyxxfpId);
|
||||||
|
|
@ -46,12 +51,38 @@ public class CrmQyxxfpServiceImpl extends BaseServiceImpl<CrmQyxxfpMapper, CrmQy
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CrmQyxxfp> getQyxxfpListByParamAndTime(CrmParamAndTimeVO vo) {
|
public List<CrmQyxxfp> getQyxxfpListByShxydmAndTime(CrmParamAndTimeVO vo) {
|
||||||
|
|
||||||
QueryWrapper<CrmQyxxfp> wrapper = new QueryWrapper<>();
|
QueryWrapper<CrmQyxxfp> wrapper = new QueryWrapper<>();
|
||||||
wrapper.eq("shxydm", vo.getParam());
|
wrapper.eq("shxydm", vo.getParam());
|
||||||
|
|
||||||
if (vo.getTime() != null) {
|
if (vo.getTime() != null && !vo.getTime().isEmpty()) {
|
||||||
|
wrapper.eq("nd", vo.getTime());
|
||||||
|
CrmQyxxfp qyxxfp = crmQyxxfpMapper.selectOne(wrapper);
|
||||||
|
return qyxxfp != null ?
|
||||||
|
Collections.singletonList(qyxxfp) :
|
||||||
|
Collections.emptyList();
|
||||||
|
}
|
||||||
|
|
||||||
|
return crmQyxxfpMapper.selectList(wrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<CrmQyxxfp> getQyxxfpListByNsrsbhAndTime(CrmParamAndTimeVO vo) {
|
||||||
|
|
||||||
|
CrmQyjbxx crmQyjbxx = crmQyjbxxMapper.selectOne(new QueryWrapper<CrmQyjbxx>()
|
||||||
|
.select("shxydm")
|
||||||
|
.eq("nsrsbh", vo.getParam())
|
||||||
|
);
|
||||||
|
|
||||||
|
if (crmQyjbxx == null || crmQyjbxx.getShxydm() == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryWrapper<CrmQyxxfp> wrapper = new QueryWrapper<>();
|
||||||
|
wrapper.eq("shxydm", crmQyjbxx.getShxydm());
|
||||||
|
|
||||||
|
if (vo.getTime() != null && !vo.getTime().isEmpty()) {
|
||||||
wrapper.eq("nd", vo.getTime());
|
wrapper.eq("nd", vo.getTime());
|
||||||
CrmQyxxfp qyxxfp = crmQyxxfpMapper.selectOne(wrapper);
|
CrmQyxxfp qyxxfp = crmQyxxfpMapper.selectOne(wrapper);
|
||||||
return qyxxfp != null ?
|
return qyxxfp != null ?
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue