inv_user_product,inv_user_product_detail表初始化代码提交
parent
f22fc931f2
commit
92e2a0fe89
@ -0,0 +1,55 @@
|
|||||||
|
package com.glxp.api.controller.inv;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.glxp.api.annotation.Log;
|
||||||
|
import com.glxp.api.common.enums.ResultEnum;
|
||||||
|
import com.glxp.api.common.res.BaseResponse;
|
||||||
|
import com.glxp.api.common.util.ResultVOUtils;
|
||||||
|
import com.glxp.api.constant.BusinessType;
|
||||||
|
import com.glxp.api.controller.BaseController;
|
||||||
|
import com.glxp.api.entity.inv.InvProductDetailEntity;
|
||||||
|
import com.glxp.api.entity.inv.InvProductEntity;
|
||||||
|
import com.glxp.api.entity.inv.InvUserProductEntity;
|
||||||
|
import com.glxp.api.req.inv.FilterInvProductDetailRequest;
|
||||||
|
import com.glxp.api.req.system.DeleteRequest;
|
||||||
|
import com.glxp.api.service.inv.InvProductDetailService;
|
||||||
|
import com.glxp.api.service.inv.InvUserProductService;
|
||||||
|
import groovy.util.logging.Slf4j;
|
||||||
|
import org.springframework.validation.BindingResult;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户库存查询接口
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@RestController
|
||||||
|
public class InvUserProductController extends BaseController {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private InvUserProductService invUserProductService;
|
||||||
|
@Resource
|
||||||
|
private InvProductDetailService invProductDetailServicel;
|
||||||
|
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * 添加库存
|
||||||
|
// *
|
||||||
|
// * @param invUserProductEntity
|
||||||
|
// * @return
|
||||||
|
// */
|
||||||
|
// @PostMapping("/spms/inv/user/product/add")
|
||||||
|
// @Log(title = "用户库存查询", businessType = BusinessType.INSERT)
|
||||||
|
// public BaseResponse addInvUserProduct(@RequestBody InvUserProductEntity invUserProductEntity) {
|
||||||
|
//
|
||||||
|
// invUserProductService.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.glxp.api.controller.inv;
|
||||||
|
|
||||||
|
import com.glxp.api.controller.BaseController;
|
||||||
|
import groovy.util.logging.Slf4j;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户库存查询接口
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@RestController
|
||||||
|
public class InvUserProductDetailController{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -1,17 +1,42 @@
|
|||||||
package com.glxp.api.service.inv.impl;
|
package com.glxp.api.service.inv.impl;
|
||||||
|
|
||||||
|
|
||||||
import com.glxp.api.dao.inv.InvUserProductDetailMapper;
|
import com.glxp.api.dao.inv.InvUserProductDetailDao;
|
||||||
import com.glxp.api.entity.inv.InvUserProductDetail;
|
import com.glxp.api.entity.inv.InvUserProductDetailEntity;
|
||||||
import com.glxp.api.service.inv.InvUserProductDetailService;
|
import com.glxp.api.service.inv.InvUserProductDetailService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Lenovo
|
* @author Lenovo
|
||||||
* @description 针对表【inv_user_product_detail(用户库存详情表)】的数据库操作Service实现
|
* @description 针对表【inv_user_product_detail(用户库存详情表)】的数据库操作Service实现
|
||||||
* @createDate 2023-05-12 10:19:43
|
* @createDate 2023-05-12 10:19:43
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class InvUserProductDetailServiceImpl implements InvUserProductDetailService{
|
public class InvUserProductDetailServiceImpl implements InvUserProductDetailService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
InvUserProductDetailDao invUserProductDetailDao;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<InvUserProductDetailEntity> filterInvUserProductDetailList(InvUserProductDetailEntity invUserProductDetailEntity) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean addInvUserProductDetail(InvUserProductDetailEntity invUserProductDetailEntity) {
|
||||||
|
return invUserProductDetailDao.insert(invUserProductDetailEntity) == 1 ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean updateInvUserProductDetail(InvUserProductDetailEntity invUserProductDetailEntity) {
|
||||||
|
return invUserProductDetailDao.updateById(invUserProductDetailEntity) == 1 ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean delectInvUserProductDetail(InvUserProductDetailEntity invUserProductDetailEntity) {
|
||||||
|
return invUserProductDetailDao.deleteById(invUserProductDetailEntity) == 1 ? true : false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,42 @@
|
|||||||
package com.glxp.api.service.inv.impl;
|
package com.glxp.api.service.inv.impl;
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.glxp.api.dao.inv.InvUserProductDao;
|
||||||
import com.glxp.api.dao.inv.InvUserProductMapper;
|
import com.glxp.api.entity.inv.InvUserProductEntity;
|
||||||
import com.glxp.api.entity.inv.InvUserProduct;
|
|
||||||
import com.glxp.api.service.inv.InvUserProductService;
|
import com.glxp.api.service.inv.InvUserProductService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Lenovo
|
* @author Lenovo
|
||||||
* @description 针对表【inv_user_product(用户库存表)】的数据库操作Service实现
|
* @description 针对表【inv_user_product(用户库存表)】的数据库操作Service实现
|
||||||
* @createDate 2023-05-12 10:19:43
|
* @createDate 2023-05-12 10:19:43
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class InvUserProductServiceImpl implements InvUserProductService{
|
public class InvUserProductServiceImpl implements InvUserProductService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
InvUserProductDao invUserProductDao;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<InvUserProductEntity> filterInvUserProductList(InvUserProductEntity invUserProductEntity) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean addInvUserProduct(InvUserProductEntity invUserProductEntity) {
|
||||||
|
return invUserProductDao.insert(invUserProductEntity) == 1 ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean updateInvUserProduct(InvUserProductEntity invUserProductEntity) {
|
||||||
|
return invUserProductDao.updateById(invUserProductEntity) == 1 ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean delectInvUserProduct(InvUserProductEntity invUserProductEntity) {
|
||||||
|
return invUserProductDao.deleteById(invUserProductEntity) == 1 ? true : false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue