|
@@ -1,91 +1,91 @@
|
|
|
-package com.pj.project.tb_orders;
|
|
|
-
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
-
|
|
|
-import com.pj.utils.sg.*;
|
|
|
-
|
|
|
-/**
|
|
|
- * 工具类:tb_orders -- 订单表
|
|
|
- * @author loovi
|
|
|
- *
|
|
|
- */
|
|
|
-@Component
|
|
|
-public class TbOrdersUtil {
|
|
|
-
|
|
|
-
|
|
|
- /** 底层 Mapper 对象 */
|
|
|
- public static TbOrdersMapper tbOrdersMapper;
|
|
|
- @Autowired
|
|
|
- private void setTbOrdersMapper(TbOrdersMapper tbOrdersMapper) {
|
|
|
- TbOrdersUtil.tbOrdersMapper = tbOrdersMapper;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 将一个 TbOrders 对象进行进行数据完整性校验 (方便add/update等接口数据校验) [G]
|
|
|
- */
|
|
|
- static void check(TbOrders t) {
|
|
|
- AjaxError.throwByIsNull(t.getId(), "[货运订单管理表主键] 不能为空"); // 验证: 货运订单管理表主键
|
|
|
- AjaxError.throwByIsNull(t.getLevelOneOrderId(), "[一级市场订单ID] 不能为空"); // 验证: 一级市场订单ID
|
|
|
- AjaxError.throwByIsNull(t.getOrderNo(), "[订单编号] 不能为空"); // 验证: 订单编号
|
|
|
- AjaxError.throwByIsNull(t.getGoodsId(), "[商品id] 不能为空"); // 验证: 商品id
|
|
|
- AjaxError.throwByIsNull(t.getGoodsName(), "[商品名称] 不能为空"); // 验证: 商品名称
|
|
|
- AjaxError.throwByIsNull(t.getGoodsFrom(), "[商品来源] 不能为空"); // 验证: 商品来源(国家)
|
|
|
- AjaxError.throwByIsNull(t.getShipperPhone(), "[发货商电话] 不能为空"); // 验证: 发货商电话
|
|
|
- AjaxError.throwByIsNull(t.getShipperName(), "[发货商名称] 不能为空"); // 验证: 发货商名称
|
|
|
- AjaxError.throwByIsNull(t.getDriverId(), "[司机ID] 不能为空"); // 验证: 司机ID
|
|
|
- AjaxError.throwByIsNull(t.getDriverName(), "[司机名称] 不能为空"); // 验证: 司机名称
|
|
|
- AjaxError.throwByIsNull(t.getDriverPhone(), "[司机电话] 不能为空"); // 验证: 司机电话
|
|
|
- AjaxError.throwByIsNull(t.getCarId(), "[车型ID] 不能为空"); // 验证: 车型ID
|
|
|
- AjaxError.throwByIsNull(t.getCarType(), "[车型名称] 不能为空"); // 验证: 车型名称
|
|
|
- AjaxError.throwByIsNull(t.getConsigneeName(), "[收货人名称] 不能为空"); // 验证: 收货人名称
|
|
|
- AjaxError.throwByIsNull(t.getConsigneePhone(), "[收货人电话号码] 不能为空"); // 验证: 收货人电话号码
|
|
|
- AjaxError.throwByIsNull(t.getDeclarationNumber(), "[申报订单号] 不能为空"); // 验证: (预留字段) 申报订单号
|
|
|
- AjaxError.throwByIsNull(t.getOrderFinish(), "[订单状态已完成] 不能为空"); // 验证: 订单状态已完成 (0=禁用,1=启用)
|
|
|
- AjaxError.throwByIsNull(t.getCreateTime(), "[创建时间] 不能为空"); // 验证: 创建时间
|
|
|
- AjaxError.throwByIsNull(t.getCreateBy(), "[创建人编号] 不能为空"); // 验证: 创建人编号
|
|
|
- AjaxError.throwByIsNull(t.getCreateName(), "[创建人名称] 不能为空"); // 验证: 创建人名称
|
|
|
- AjaxError.throwByIsNull(t.getUpdateTime(), "[更新时间] 不能为空"); // 验证: 更新时间
|
|
|
- AjaxError.throwByIsNull(t.getUpdateBy(), "[更新人编号] 不能为空"); // 验证: 更新人编号
|
|
|
- AjaxError.throwByIsNull(t.getUpdateName(), "[更新人名称] 不能为空"); // 验证: 更新人名称
|
|
|
- AjaxError.throwByIsNull(t.getDeleteStatus(), "[删除状态] 不能为空"); // 验证: 删除状态(0=禁用,1=启用)
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取一个TbOrders (方便复制代码用) [G]
|
|
|
- */
|
|
|
- static TbOrders getTbOrders() {
|
|
|
- TbOrders t = new TbOrders(); // 声明对象
|
|
|
- t.setId(0L); // 货运订单管理表主键
|
|
|
- t.setLevelOneOrderId(0L); // 一级市场订单ID
|
|
|
- t.setOrderNo(""); // 订单编号
|
|
|
- t.setGoodsId(0L); // 商品id
|
|
|
- t.setGoodsName(""); // 商品名称
|
|
|
- t.setGoodsFrom(""); // 商品来源(国家)
|
|
|
- t.setShipperPhone(""); // 发货商电话
|
|
|
- t.setShipperName(""); // 发货商名称
|
|
|
- t.setDriverId(0L); // 司机ID
|
|
|
- t.setDriverName(""); // 司机名称
|
|
|
- t.setDriverPhone(""); // 司机电话
|
|
|
- t.setCarId(0L); // 车型ID
|
|
|
- t.setCarType(""); // 车型名称
|
|
|
- t.setConsigneeName(""); // 收货人名称
|
|
|
- t.setConsigneePhone(""); // 收货人电话号码
|
|
|
- t.setDeclarationNumber(""); // (预留字段) 申报订单号
|
|
|
- t.setOrderFinish(0); // 订单状态已完成 (0=禁用,1=启用)
|
|
|
- t.setCreateTime(""); // 创建时间
|
|
|
- t.setCreateBy(""); // 创建人编号
|
|
|
- t.setCreateName(""); // 创建人名称
|
|
|
- t.setUpdateTime(""); // 更新时间
|
|
|
- t.setUpdateBy(""); // 更新人编号
|
|
|
- t.setUpdateName(""); // 更新人名称
|
|
|
- t.setDeleteStatus(0); // 删除状态(0=禁用,1=启用)
|
|
|
- return t;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-}
|
|
|
+//package com.pj.project.tb_orders;
|
|
|
+//
|
|
|
+//import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+//import org.springframework.stereotype.Component;
|
|
|
+//
|
|
|
+//import com.pj.utils.sg.*;
|
|
|
+//
|
|
|
+///**
|
|
|
+// * 工具类:tb_orders -- 订单表
|
|
|
+// * @author loovi
|
|
|
+// *
|
|
|
+// */
|
|
|
+//@Component
|
|
|
+//public class TbOrdersUtil {
|
|
|
+//
|
|
|
+//
|
|
|
+// /** 底层 Mapper 对象 */
|
|
|
+// public static TbOrdersMapper tbOrdersMapper;
|
|
|
+// @Autowired
|
|
|
+// private void setTbOrdersMapper(TbOrdersMapper tbOrdersMapper) {
|
|
|
+// TbOrdersUtil.tbOrdersMapper = tbOrdersMapper;
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 将一个 TbOrders 对象进行进行数据完整性校验 (方便add/update等接口数据校验) [G]
|
|
|
+// */
|
|
|
+// static void check(TbOrders t) {
|
|
|
+// AjaxError.throwByIsNull(t.getId(), "[货运订单管理表主键] 不能为空"); // 验证: 货运订单管理表主键
|
|
|
+// AjaxError.throwByIsNull(t.getLevelOneOrderId(), "[一级市场订单ID] 不能为空"); // 验证: 一级市场订单ID
|
|
|
+// AjaxError.throwByIsNull(t.getOrderNo(), "[订单编号] 不能为空"); // 验证: 订单编号
|
|
|
+// AjaxError.throwByIsNull(t.getGoodsId(), "[商品id] 不能为空"); // 验证: 商品id
|
|
|
+// AjaxError.throwByIsNull(t.getGoodsName(), "[商品名称] 不能为空"); // 验证: 商品名称
|
|
|
+// AjaxError.throwByIsNull(t.getGoodsFrom(), "[商品来源] 不能为空"); // 验证: 商品来源(国家)
|
|
|
+// AjaxError.throwByIsNull(t.getShipperPhone(), "[发货商电话] 不能为空"); // 验证: 发货商电话
|
|
|
+// AjaxError.throwByIsNull(t.getShipperName(), "[发货商名称] 不能为空"); // 验证: 发货商名称
|
|
|
+// AjaxError.throwByIsNull(t.getDriverId(), "[司机ID] 不能为空"); // 验证: 司机ID
|
|
|
+// AjaxError.throwByIsNull(t.getDriverName(), "[司机名称] 不能为空"); // 验证: 司机名称
|
|
|
+// AjaxError.throwByIsNull(t.getDriverPhone(), "[司机电话] 不能为空"); // 验证: 司机电话
|
|
|
+// AjaxError.throwByIsNull(t.getCarId(), "[车型ID] 不能为空"); // 验证: 车型ID
|
|
|
+// AjaxError.throwByIsNull(t.getCarType(), "[车型名称] 不能为空"); // 验证: 车型名称
|
|
|
+// AjaxError.throwByIsNull(t.getConsigneeName(), "[收货人名称] 不能为空"); // 验证: 收货人名称
|
|
|
+// AjaxError.throwByIsNull(t.getConsigneePhone(), "[收货人电话号码] 不能为空"); // 验证: 收货人电话号码
|
|
|
+// AjaxError.throwByIsNull(t.getDeclarationNumber(), "[申报订单号] 不能为空"); // 验证: (预留字段) 申报订单号
|
|
|
+// AjaxError.throwByIsNull(t.getOrderFinish(), "[订单状态已完成] 不能为空"); // 验证: 订单状态已完成 (0=禁用,1=启用)
|
|
|
+// AjaxError.throwByIsNull(t.getCreateTime(), "[创建时间] 不能为空"); // 验证: 创建时间
|
|
|
+// AjaxError.throwByIsNull(t.getCreateBy(), "[创建人编号] 不能为空"); // 验证: 创建人编号
|
|
|
+// AjaxError.throwByIsNull(t.getCreateName(), "[创建人名称] 不能为空"); // 验证: 创建人名称
|
|
|
+// AjaxError.throwByIsNull(t.getUpdateTime(), "[更新时间] 不能为空"); // 验证: 更新时间
|
|
|
+// AjaxError.throwByIsNull(t.getUpdateBy(), "[更新人编号] 不能为空"); // 验证: 更新人编号
|
|
|
+// AjaxError.throwByIsNull(t.getUpdateName(), "[更新人名称] 不能为空"); // 验证: 更新人名称
|
|
|
+// AjaxError.throwByIsNull(t.getDeleteStatus(), "[删除状态] 不能为空"); // 验证: 删除状态(0=禁用,1=启用)
|
|
|
+// }
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 获取一个TbOrders (方便复制代码用) [G]
|
|
|
+// */
|
|
|
+// static TbOrders getTbOrders() {
|
|
|
+// TbOrders t = new TbOrders(); // 声明对象
|
|
|
+// t.setId(0L); // 货运订单管理表主键
|
|
|
+// t.setLevelOneOrderId(0L); // 一级市场订单ID
|
|
|
+// t.setOrderNo(""); // 订单编号
|
|
|
+// t.setGoodsId(0L); // 商品id
|
|
|
+// t.setGoodsName(""); // 商品名称
|
|
|
+// t.setGoodsFrom(""); // 商品来源(国家)
|
|
|
+// t.setShipperPhone(""); // 发货商电话
|
|
|
+// t.setShipperName(""); // 发货商名称
|
|
|
+// t.setDriverId(0L); // 司机ID
|
|
|
+// t.setDriverName(""); // 司机名称
|
|
|
+// t.setDriverPhone(""); // 司机电话
|
|
|
+// t.setCarId(0L); // 车型ID
|
|
|
+// t.setCarType(""); // 车型名称
|
|
|
+// t.setConsigneeName(""); // 收货人名称
|
|
|
+// t.setConsigneePhone(""); // 收货人电话号码
|
|
|
+// t.setDeclarationNumber(""); // (预留字段) 申报订单号
|
|
|
+// t.setOrderFinish(0); // 订单状态已完成 (0=禁用,1=启用)
|
|
|
+// t.setCreateTime(""); // 创建时间
|
|
|
+// t.setCreateBy(""); // 创建人编号
|
|
|
+// t.setCreateName(""); // 创建人名称
|
|
|
+// t.setUpdateTime(""); // 更新时间
|
|
|
+// t.setUpdateBy(""); // 更新人编号
|
|
|
+// t.setUpdateName(""); // 更新人名称
|
|
|
+// t.setDeleteStatus(0); // 删除状态(0=禁用,1=启用)
|
|
|
+// return t;
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//}
|