乐观锁、逻辑删除功能
This commit is contained in:
parent
f3e2afcaa3
commit
fe75716c7f
@ -24,7 +24,7 @@ import com.ruoyi.common.orm.core.page.TableDataInfo;
|
|||||||
* 客户主表Controller
|
* 客户主表Controller
|
||||||
*
|
*
|
||||||
* @author 数据小王子
|
* @author 数据小王子
|
||||||
* 2023-12-06
|
* 2024-01-06
|
||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@ -94,7 +94,7 @@ public class CustomerController extends BaseController
|
|||||||
{
|
{
|
||||||
Boolean updated = customerService.update(customerBo);
|
Boolean updated = customerService.update(customerBo);
|
||||||
if (!updated) {
|
if (!updated) {
|
||||||
R.fail("修改客户主表记录失败!");
|
return R.fail("修改客户主表记录失败!");
|
||||||
}
|
}
|
||||||
return R.ok();
|
return R.ok();
|
||||||
}
|
}
|
||||||
@ -109,7 +109,7 @@ public class CustomerController extends BaseController
|
|||||||
{
|
{
|
||||||
boolean deleted = customerService.deleteByIds(customerIds);
|
boolean deleted = customerService.deleteByIds(customerIds);
|
||||||
if (!deleted) {
|
if (!deleted) {
|
||||||
R.fail("删除客户主表记录失败!");
|
return R.fail("删除客户主表记录失败!");
|
||||||
}
|
}
|
||||||
return R.ok();
|
return R.ok();
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ import com.ruoyi.mf.domain.Goods;
|
|||||||
* 客户主表Mapper接口
|
* 客户主表Mapper接口
|
||||||
*
|
*
|
||||||
* @author 数据小王子
|
* @author 数据小王子
|
||||||
* 2023-12-06
|
* 2024-01-06
|
||||||
*/
|
*/
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface CustomerMapper extends BaseMapper<Customer>
|
public interface CustomerMapper extends BaseMapper<Customer>
|
||||||
|
@ -5,10 +5,10 @@ import org.apache.ibatis.annotations.Mapper;
|
|||||||
import com.ruoyi.mf.domain.Goods;
|
import com.ruoyi.mf.domain.Goods;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品子表Mapper接口
|
* 商品子Mapper接口
|
||||||
*
|
*
|
||||||
* @author 数据小王子
|
* @author 数据小王子
|
||||||
* 2023-12-06
|
* 2024-01-06
|
||||||
*/
|
*/
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface GoodsMapper extends BaseMapper<Goods>
|
public interface GoodsMapper extends BaseMapper<Goods>
|
||||||
|
@ -11,7 +11,7 @@ import com.ruoyi.common.orm.core.page.TableDataInfo;
|
|||||||
* 客户主表Service接口
|
* 客户主表Service接口
|
||||||
*
|
*
|
||||||
* @author 数据小王子
|
* @author 数据小王子
|
||||||
* 2023-12-06
|
* 2024-01-06
|
||||||
*/
|
*/
|
||||||
public interface ICustomerService extends IBaseService<Customer>
|
public interface ICustomerService extends IBaseService<Customer>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user