class CostManagementImpl implements CostManagementService {

    @Override
    public CommonResult insertCost(Cost cost) {
        int count = costMapper.insertSelective(cost);
        if (count == 0) {
            return CommonResult.fail();
        }
        return CommonResult.success(count);
    }

}