提交 a0cb5723 作者: luyincheng

相关代码迁移

父级 3ad9ea3b
## 表结构修改SQL
## 表结构修改SQL
2023年10月9日17点01分
基于feature-2.0.1分支
###SQL脚本
```SQL
DROP TABLE IF EXISTS t_auxiliary_materials;
CREATE TABLE t_auxiliary_materials(
`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT 'id' ,
`material_code` VARCHAR(255) COMMENT '物料编码' ,
`material_name` VARCHAR(255) COMMENT '物料名称' ,
`measurement_unit` VARCHAR(255) COMMENT '计量单位' ,
`apply_quantity` VARCHAR(255) COMMENT '申请数量' ,
`approved_quantity` VARCHAR(255) COMMENT '批准数量' ,
`currenty_sap` VARCHAR(255) COMMENT 'SAP当前库存数' ,
`month_amount_sap` VARCHAR(255) COMMENT '近一个月用量(SAP)' ,
`year_amount` VARCHAR(255) COMMENT '近一年用量' ,
`apply_status` VARCHAR(255) COMMENT '申请状态 已申请 已驳回 已通过 已关闭' ,
`team` VARCHAR(255) COMMENT '申请团队' ,
`logistic_status` VARCHAR(255) COMMENT '物流状态 未发货 已发货' ,
`receiving_status` VARCHAR(255) COMMENT '收货状态 未收货 已收货' ,
`recipents` VARCHAR(255) COMMENT '收货人' ,
`receive_address` VARCHAR(255) COMMENT '收货地址' ,
`receive_phone` VARCHAR(255) COMMENT '联系电话' ,
`apply_time` DATETIME COMMENT '申请时间' ,
`check_user` VARCHAR(255) COMMENT '审核人' ,
`check_user_name` VARCHAR(255) COMMENT '审核人姓名' ,
`check_time` DATETIME COMMENT '审核时间' ,
`check_suggestion` VARCHAR(255) COMMENT '审核意见' ,
`CREATED_BY` VARCHAR(255) COMMENT '创建人' ,
`CREATED_TIME` DATETIME COMMENT '创建时间' ,
`UPDATED_BY` VARCHAR(255) COMMENT '更新人' ,
`UPDATED_TIME` DATETIME COMMENT '更新时间' ,
`install_order` VARCHAR(255) COMMENT '安装单号' ,
`specification` VARCHAR(255) COMMENT '规格型号' ,
`logistic_order` VARCHAR(255) COMMENT '物流单号' ,
`apply_inventory` VARCHAR(255) COMMENT '申请时库存' ,
`apply_order` VARCHAR(255) COMMENT '申请单号' ,
`warehouse_id` VARCHAR(255) COMMENT '绑定仓库id' ,
PRIMARY KEY (id)
) COMMENT = '辅材申请';
DROP TABLE IF EXISTS t_received_note;
CREATE TABLE t_received_note(
`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT 'id' ,
`received_order` VARCHAR(255) COMMENT '收货单号' ,
`install_order` VARCHAR(255) COMMENT '安装单号' ,
`product_batch` VARCHAR(255) COMMENT '产品批次' ,
`material_category` VARCHAR(255) COMMENT '物料类别' ,
`material_code` VARCHAR(255) COMMENT '物料编码' ,
`arrival_warehouse` VARCHAR(255) COMMENT '到货仓库' ,
`arrival_warehouse_id` INT(11) COMMENT '到货仓库id' ,
`receiver` VARCHAR(255) COMMENT '收货人' ,
`receiving_time` DATETIME COMMENT '收货时间' ,
`arrival_quantity` INT(10) COMMENT '到货数量' ,
`auxiliary_id` INT COMMENT '辅料申请单号' ,
`CREATED_BY` VARCHAR(255) COMMENT '创建人' ,
`CREATED_TIME` DATETIME COMMENT '创建时间' ,
`UPDATED_BY` VARCHAR(255) COMMENT '更新人' ,
`UPDATED_TIME` DATETIME COMMENT '更新时间' ,
PRIMARY KEY (id)
) COMMENT = '收货单';
DROP TABLE IF EXISTS t_delivery;
CREATE TABLE t_delivery(
`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT 'id' ,
`delivery_order` VARCHAR(255) COMMENT '发货单号' ,
`install_order` VARCHAR(255) COMMENT '安装单号' ,
`product_batch` VARCHAR(255) COMMENT '产品批次' ,
`quantity` INT COMMENT '发货数量' ,
`material_category` VARCHAR(255) COMMENT '物料类别' ,
`material_code` VARCHAR(255) COMMENT '物料编码' ,
`material_name` VARCHAR(255) COMMENT '物料名称' ,
`material_company` VARCHAR(255) COMMENT '物料厂商' ,
`logistic_order` VARCHAR(255) COMMENT '物流单号' ,
`logistic_company` VARCHAR(255) COMMENT '物流服务商' ,
`logistic_status` VARCHAR(255) COMMENT '物流状态 未发货 已发货' ,
`CREATED_BY` VARCHAR(255) COMMENT '创建人' ,
`CREATED_TIME` DATETIME COMMENT '创建时间' ,
`UPDATED_BY` VARCHAR(255) COMMENT '更新人' ,
`UPDATED_TIME` DATETIME COMMENT '更新时间' ,
PRIMARY KEY (id)
) COMMENT = '发货单';
DROP TABLE IF EXISTS t_reject;
CREATE TABLE t_reject(
`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT 'id' ,
`reject_order` VARCHAR(255) COMMENT '退货单号' ,
`install_order` VARCHAR(255) COMMENT '安装单号' ,
`product_batch` VARCHAR(255) COMMENT '产品批次' ,
`quantity` INT COMMENT '退货数量' ,
`material_category` VARCHAR(255) COMMENT '物料类别' ,
`material_code` VARCHAR(255) COMMENT '物料编码' ,
`material_name` VARCHAR(255) COMMENT '物料名称' ,
`material_company` VARCHAR(255) COMMENT '物料厂商' ,
`logistic_order` VARCHAR(255) COMMENT '物流单号' ,
`logistic_company` VARCHAR(255) COMMENT '物流服务商' ,
`warehouse_name` VARCHAR(255) COMMENT '退货仓库' ,
`warehouse_id` INT(11) COMMENT '退货仓库id' ,
`reason` VARCHAR(255) COMMENT '退货原因' ,
`status` VARCHAR(255) COMMENT '退货状态 已申请 已驳回 已通过 已关闭' ,
`check_time` DATETIME COMMENT '审批时间' ,
`check_user` VARCHAR(255) COMMENT '审核人' ,
`check_user_name` VARCHAR(255) COMMENT '审核人姓名' ,
`check_suggestion` VARCHAR(255) COMMENT '审核意见' ,
`CREATED_BY` VARCHAR(255) COMMENT '创建人' ,
`CREATED_TIME` DATETIME COMMENT '创建时间' ,
`UPDATED_BY` VARCHAR(255) COMMENT '更新人' ,
`UPDATED_TIME` DATETIME COMMENT '更新时间' ,
PRIMARY KEY (id)
) COMMENT = '退货单';
package com.starcharge.wios.Import.impl;
import com.starcharge.wios.Import.Import;
import com.starcharge.wios.convert.DeliveryConvert;
import com.starcharge.wios.validation.CreateEntityGroup;
import com.starcharge.wios.vo.DeliveryAddVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.util.List;
import java.util.Set;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.Import.impl
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/1317:01
*/
@Service
public class DeliveryImport implements Import {
@Autowired
private Validator validator;
@Override
public List<?> handle(List<Object> list) {
// List<String> headList = (List<String>)list.get(0);
for(int i=1;i<list.size();i++){
List<String> rowdata = (List<String>)list.get(i);
DeliveryAddVo deliveryAddVo= DeliveryConvert.INSTANCE.convertImportAddVo(rowdata);
Set<ConstraintViolation<DeliveryAddVo>> sets = validator.validate(deliveryAddVo, CreateEntityGroup.class);
if(!sets.isEmpty()){
rowdata.add(sets.stream().map(ConstraintViolation::getMessage).reduce("error:",(s1,s2)->s1+";"+s2));
continue;
}
}
return list;
}
}
package com.starcharge.wios.controller;
import com.ihidea.component.api.v2.BaseResponse;
import com.starcharge.wios.auth.service.TokenService;
import com.starcharge.wios.convert.DeliveryConvert;
import com.starcharge.wios.dao.entity.Delivery;
import com.starcharge.wios.dao.mappers.DeliveryMapper;
import com.starcharge.wios.dao.mappers.WallboxApplyMapper;
import com.starcharge.wios.service.CommonUpdateService;
import com.starcharge.wios.service.SnowFlakeService;
import com.starcharge.wios.utils.ExcelUtils;
import com.starcharge.wios.validation.CreateEntityGroup;
import com.starcharge.wios.validation.ParamsValidate;
import com.starcharge.wios.validation.UpdateEntityGroup;
import com.starcharge.wios.vo.DeliveryAddVo;
import com.starcharge.wios.vo.DeliveryExcelVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.controller
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/818:10
*/
@RestController
@RequestMapping("api/delivery")
@Api(tags = "发货管理接口")
public class DeliveryController {
@Autowired
private TokenService tokenService;
@Autowired
private DeliveryMapper deliveryMapper;
@Autowired
private CommonUpdateService commonUpdateService;
@Autowired
private SnowFlakeService snowFlakeService;
@Autowired
private WallboxApplyMapper wallboxApplyMapper;
@PostMapping("/add")
@ApiOperation(value = "新增发货",notes = "新增发货,返回成功条数")
@ParamsValidate
@Transactional
public BaseResponse<Integer> AddDelivery(@RequestBody @Validated(CreateEntityGroup.class) List<DeliveryAddVo> deliveryAddVoList, BindingResult bindingResult){
String orderid= snowFlakeService.getNextId(0,0)+"";
return new BaseResponse(deliveryAddVoList.stream()
.map(da->{
Delivery delivery= DeliveryConvert.INSTANCE.convertAddVo(da);
delivery.setDeliveryOrder(orderid);
this.commonUpdateService.UpdateColumns(delivery,true);
this.wallboxApplyMapper.updateWallBoxTrackingStatusByMC("1",delivery.getMaterialCode());
return this.deliveryMapper.insertSelective(delivery);
}).reduce(0,Integer::sum));
}
@PostMapping("/query")
@ApiOperation(value = "发货列表查询")
public BaseResponse<List<Delivery>> queryDelivery(Delivery Delivery){
return new BaseResponse(this.deliveryMapper.selectDeliveryList(Delivery));
}
@GetMapping("/detail")
@ApiOperation(value = "发货详情")
public BaseResponse<Delivery> getdetail(@RequestParam int id){
return new BaseResponse(this.deliveryMapper.selectByPrimaryKey(id));
}
@GetMapping("/delete")
@ApiOperation(value = "删除发货信息")
public BaseResponse<Integer> delete(@RequestParam int id){
return new BaseResponse(this.deliveryMapper.deleteByPrimaryKey(id));
}
@PostMapping("/update")
@ApiOperation("更新发货单信息")
@ParamsValidate
public BaseResponse<Delivery> update(@RequestBody @Validated(UpdateEntityGroup.class) Delivery delivery, BindingResult bindingResult){
this.commonUpdateService.UpdateColumns(delivery,false);
return new BaseResponse(this.deliveryMapper.updateByPrimaryKeySelective(delivery));
}
@PostMapping("/export")
@ApiOperation(value = "导出发货单列表")
public void export(HttpServletResponse response, @RequestBody Delivery Delivery) throws IOException {
// ExcelUtil<WarehouseInfo> util = new ExcelUtil<WarehouseInfo>(WarehouseInfo.class);
// util.exportExcel(response, list, "仓库信息管理数据");
List<DeliveryExcelVo> data = DeliveryConvert.INSTANCE.convertExcelVoList(this
.deliveryMapper.selectDeliveryList(Delivery));
// 输出
ExcelUtils.write(response, "发货管理列表.xls", "发货信息", DeliveryExcelVo.class, data);
}
}
package com.starcharge.wios.controller;
import com.ihidea.component.api.v2.BaseResponse;
import com.starcharge.wios.auth.service.TokenService;
import com.starcharge.wios.convert.ReceivednoteConvert;
import com.starcharge.wios.dao.entity.Receivednote;
import com.starcharge.wios.dao.mappers.ReceivednoteMapper;
import com.starcharge.wios.service.CommonUpdateService;
import com.starcharge.wios.service.SnowFlakeService;
import com.starcharge.wios.utils.ExcelUtils;
import com.starcharge.wios.validation.CreateEntityGroup;
import com.starcharge.wios.validation.ParamsValidate;
import com.starcharge.wios.validation.UpdateEntityGroup;
import com.starcharge.wios.vo.ReceivednoteAddVo;
import com.starcharge.wios.vo.ReceivednoteExcelVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.controller
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/814:24
*/
@RestController
@RequestMapping("api/receivednote")
@Api(tags = "收货管理接口")
public class ReceivedNoteController {
@Autowired
private TokenService tokenService;
@Autowired
private ReceivednoteMapper receivednoteMapper;
@Autowired
private CommonUpdateService commonUpdateService;
@Autowired
private SnowFlakeService snowFlakeService;
@PostMapping("/add")
@ApiOperation(value = "新增收货",notes = "新增收货,返回成功条数")
@ParamsValidate
public BaseResponse<Integer> AddReceivednote(@RequestBody @Validated(CreateEntityGroup.class) ReceivednoteAddVo receivednoteAddVo, BindingResult bindingResult){
String orderid= snowFlakeService.getNextId(0,0)+"";
return new BaseResponse(receivednoteAddVo.getSingleReceivenotes().stream()
.map(s->{
Receivednote receivednote= ReceivednoteConvert.INSTANCE.convertAddVo(receivednoteAddVo);
ReceivednoteConvert.INSTANCE.convertAddSingleVo(s,receivednote);
receivednote.setReceivedOrder(orderid);
this.commonUpdateService.UpdateColumns(receivednote,true);
return this.receivednoteMapper.insertSelective(receivednote);
}).reduce(0,Integer::sum));
}
@PostMapping("/query")
@ApiOperation(value = "收货列表查询")
public BaseResponse<List<Receivednote>> queryReceivednote(Receivednote receivednote){
return new BaseResponse<>(this.receivednoteMapper.selectReceivedNoteList(receivednote));
}
@GetMapping("/detail")
@ApiOperation(value = "收货详情")
public BaseResponse<Receivednote> getdetail(@RequestParam int id){
return new BaseResponse<>(this.receivednoteMapper.selectByPrimaryKey(id));
}
@GetMapping("/delete")
@ApiOperation(value = "删除收货信息")
public BaseResponse<Integer> delete(@RequestParam int id){
return new BaseResponse(this.receivednoteMapper.deleteByPrimaryKey(id));
}
@PostMapping("/update")
@ApiOperation("更新收货单信息")
@ParamsValidate
public BaseResponse<Receivednote> update(@RequestBody @Validated(UpdateEntityGroup.class) Receivednote receivednote, BindingResult bindingResult){
this.commonUpdateService.UpdateColumns(receivednote,false);
return new BaseResponse(this.receivednoteMapper.updateByPrimaryKeySelective(receivednote));
}
@PostMapping("/export")
@ApiOperation(value = "导出收货单列表")
public void export(HttpServletResponse response, @RequestBody Receivednote receivednote) throws IOException {
// ExcelUtil<WarehouseInfo> util = new ExcelUtil<WarehouseInfo>(WarehouseInfo.class);
// util.exportExcel(response, list, "仓库信息管理数据");
List<ReceivednoteExcelVo> data = ReceivednoteConvert.INSTANCE.convertExcelVoList(this
.receivednoteMapper.selectReceivedNoteList(receivednote));
// 输出
ExcelUtils.write(response, "收货管理列表.xls", "收货信息", ReceivednoteExcelVo.class, data);
}
}
package com.starcharge.wios.controller;
import com.ihidea.component.api.v2.BaseResponse;
import com.ihidea.core.support.exception.ServiceException;
import com.ihidea.core.support.session.SessionInfo;
import com.starcharge.wios.auth.service.TokenService;
import com.starcharge.wios.convert.RejectConvert;
import com.starcharge.wios.dao.entity.Reject;
import com.starcharge.wios.dao.mappers.RejectMapper;
import com.starcharge.wios.enums2.TauxiliarymaterialStatusEnum;
import com.starcharge.wios.service.CommonUpdateService;
import com.starcharge.wios.service.SnowFlakeService;
import com.starcharge.wios.utils.ExcelUtils;
import com.starcharge.wios.validation.CreateEntityGroup;
import com.starcharge.wios.validation.ParamsValidate;
import com.starcharge.wios.validation.UpdateEntityGroup;
import com.starcharge.wios.vo.RejectAddVo;
import com.starcharge.wios.vo.RejectCheckVo;
import com.starcharge.wios.vo.RejectExcelVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.var;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.time.LocalDateTime;
import java.util.List;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.controller
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/819:15
*/
@RestController
@RequestMapping("api/reject")
@Api(tags = "退货管理接口")
public class RejectController {
@Autowired
private TokenService tokenService;
@Autowired
private RejectMapper rejectMapper;
@Autowired
private CommonUpdateService commonUpdateService;
@Autowired
private SnowFlakeService snowFlakeService;
@PostMapping("/add")
@ApiOperation(value = "新增退货")
@ParamsValidate
public BaseResponse<Integer> AddReject(@RequestBody @Validated(CreateEntityGroup.class) RejectAddVo rejectAddVo, BindingResult bindingResult){
String orderid= snowFlakeService.getNextId(0,0)+"";
Reject reject= RejectConvert.INSTANCE.convertAddVo(rejectAddVo);
reject.setRejectOrder(orderid);
reject.setStatus(TauxiliarymaterialStatusEnum.已申请.name());
this.commonUpdateService.UpdateColumns(reject,true);
return new BaseResponse<>(this.rejectMapper.insertSelective(reject));
}
@PostMapping("/query")
@ApiOperation(value = "退货列表查询")
public BaseResponse<List<Reject>> queryReject(Reject Reject){
return new BaseResponse(this.rejectMapper.selectRejectList(Reject));
}
@GetMapping("/detail")
@ApiOperation(value = "退货详情")
public BaseResponse<Reject> getdetail(@RequestParam int id){
return new BaseResponse(this.rejectMapper.selectByPrimaryKey(id));
}
@GetMapping("/delete")
@ApiOperation(value = "删除退货信息")
public BaseResponse<Integer> delete(@RequestParam int id){
return new BaseResponse(this.rejectMapper.deleteByPrimaryKey(id));
}
@PostMapping("/update")
@ApiOperation("更新退货单信息")
@ParamsValidate
public BaseResponse<Reject> update(@RequestBody @Validated(UpdateEntityGroup.class) RejectAddVo rejectAddVo, BindingResult bindingResult){
var data=RejectConvert.INSTANCE.convertAddVo(rejectAddVo);
this.commonUpdateService.UpdateColumns(data,false);
return new BaseResponse(this.rejectMapper.updateByPrimaryKeySelective(data));
}
@PostMapping("/export")
@ApiOperation(value = "导出退货单列表")
public void export(HttpServletResponse response, @RequestBody Reject Reject) throws IOException {
// ExcelUtil<WarehouseInfo> util = new ExcelUtil<WarehouseInfo>(WarehouseInfo.class);
// util.exportExcel(response, list, "仓库信息管理数据");
List<RejectExcelVo> data = RejectConvert.INSTANCE.convertExcelVoList(this
.rejectMapper.selectRejectList(Reject));
// 输出
ExcelUtils.write(response, "退货管理列表.xls", "退货信息", RejectExcelVo.class, data);
}
@PostMapping("/check")
@ApiOperation("审批退货单")
@ParamsValidate
public BaseResponse<Boolean> check(@RequestBody @Validated RejectCheckVo rejectCheckVo,BindingResult bindingResult){
var status=TauxiliarymaterialStatusEnum.getEnumByName(0,rejectCheckVo.getStatus());
if(status==null){
throw new ServiceException(400,"status必须是枚举:"+TauxiliarymaterialStatusEnum.getStatusTypeEnums(0).stream().map(e->e.name()).reduce("",(a,b)->a+","+b));
}
SessionInfo sessionInfo = tokenService.getUser();
var data=RejectConvert.INSTANCE.convertCheckVo(rejectCheckVo);
data.setCheckUser(sessionInfo.getUserId());
data.setCheckUserName(sessionInfo.getUserName());
data.setCheckTime(LocalDateTime.now());
this.commonUpdateService.UpdateColumns(data,false);
return new BaseResponse(this.rejectMapper.updateByPrimaryKeySelective(data));
}
}
package com.starcharge.wios.controller;
import com.ihidea.component.api.v2.BaseResponse;
import com.ihidea.core.support.exception.ServiceException;
import com.ihidea.core.support.session.SessionInfo;
import com.starcharge.wios.auth.service.TokenService;
import com.starcharge.wios.convert.TauxiliarymaterialsConvert;
import com.starcharge.wios.dao.entity.Tauxiliarymaterials;
import com.starcharge.wios.dao.entity.TauxiliarymaterialsCriteria;
import com.starcharge.wios.dao.mappers.TauxiliarymaterialsMapper;
import com.starcharge.wios.dto.TauxiliarymaterialsCheckDto;
import com.starcharge.wios.enums2.TauxiliarymaterialStatusEnum;
import com.starcharge.wios.utils.ExcelUtils;
import com.starcharge.wios.validation.CreateEntityGroup;
import com.starcharge.wios.validation.ParamsValidate;
import com.starcharge.wios.vo.TauxiliarymaterialsExcelVo;
import com.starcharge.wios.vo.TauxiliarymaterialsVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.var;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.time.LocalDateTime;
import java.util.List;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.controller
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/9/25 14:50
*/
@RestController
@RequestMapping("api/tauxiliarymaterials")
@Api(tags = "辅材管理接口")
public class TauxiliarymaterialsController {
@Autowired
private TokenService tokenService;
@Autowired
private TauxiliarymaterialsMapper tauxiliarymaterialsMapper;
public void UpdateColumns(Tauxiliarymaterials tauxiliarymaterials){
SessionInfo sessionInfo = tokenService.getUser();
tauxiliarymaterials.setUpdatedBy(sessionInfo.getUserId());
tauxiliarymaterials.setUpdatedTime(LocalDateTime.now());
}
@PostMapping("/add")
@ApiOperation("新增辅材申请")
@ParamsValidate
public BaseResponse<Tauxiliarymaterials> AddTauxiliarymaterials( @RequestBody @Validated(CreateEntityGroup.class) Tauxiliarymaterials tauxiliarymaterials, BindingResult bindingResult){
SessionInfo sessionInfo = tokenService.getUser();
var now=LocalDateTime.now();
tauxiliarymaterials.setApplyStatus(TauxiliarymaterialStatusEnum.已申请.name());
tauxiliarymaterials.setLogisticStatus(TauxiliarymaterialStatusEnum.未发货.name());
tauxiliarymaterials.setReceivingStatus(TauxiliarymaterialStatusEnum.未收货.name());
tauxiliarymaterials.setApplyTime(now);
tauxiliarymaterials.setCreatedBy(sessionInfo.getUserId());
tauxiliarymaterials.setCreatedTime(now);
tauxiliarymaterials.setUpdatedBy(sessionInfo.getUserId());
tauxiliarymaterials.setUpdatedTime(now);
//暂时代替申请单号
// tauxiliarymaterials.setApplyOrder(IdWorker.getIdStr());
tauxiliarymaterialsMapper.insertSelective(tauxiliarymaterials);
return new BaseResponse<>(tauxiliarymaterials);
}
@GetMapping("/detail")
@ApiOperation(value = "查询辅材申请详情")
public BaseResponse<Tauxiliarymaterials> detail(@RequestParam int id){
return new BaseResponse(this.tauxiliarymaterialsMapper.selectByPrimaryKey(id));
}
@PostMapping("/query")
@ApiOperation(value = "查询辅材申请列表",notes = "属性不为空即为查询条件")
public BaseResponse<List<Tauxiliarymaterials>> queryTauxiliarymaterialsList(Tauxiliarymaterials tauxiliarymaterials){
return new BaseResponse(this.tauxiliarymaterialsMapper.selectTAuxiliaryMaterialsList(tauxiliarymaterials));
}
@PostMapping("/delete")
@ApiOperation(value = "删除辅材申请")
public BaseResponse<Boolean> deleteTauxiliarymaterials(@RequestParam int id){
return new BaseResponse(this.tauxiliarymaterialsMapper.deleteByPrimaryKey(id)>0);
}
@PostMapping("/updateinfo")
@ApiOperation(value = "更新辅材申请信息")
public BaseResponse<Boolean> updateTauxiliarymaterialsInfo(@RequestBody TauxiliarymaterialsVo tauxiliarymaterials){
if(tauxiliarymaterials.getId()==null||tauxiliarymaterials.getId()<=0){
throw new ServiceException("400","id不能为空");
}
var updateDto=new Tauxiliarymaterials();
BeanUtils.copyProperties(tauxiliarymaterials,updateDto);
UpdateColumns(updateDto);
return new BaseResponse(this.tauxiliarymaterialsMapper.updateByPrimaryKeySelective(updateDto)>0);
}
@GetMapping("/updatestatus")
@ApiOperation(value = "更新辅材申请状态")
public BaseResponse<Boolean> updateStatus(@RequestParam int id,
@RequestParam(required = false) @ApiParam("发货状态:未发货,已发货;可为空") String logisticStatus,
@RequestParam(required = false) @ApiParam("收货状态:未收货, 已收货;可为空")String receivingStatus,
@RequestParam(required = false) @ApiParam("申请状态:已申请,已驳回,已通过,已关闭;可为空")String applyStatus){
if(StringUtils.isEmpty(logisticStatus)&&StringUtils.isEmpty(receivingStatus)&&StringUtils.isEmpty(applyStatus)){
throw new ServiceException("400","至少更新一种状态");
}
var ta=new Tauxiliarymaterials();
ta.setId(id);
ta.setApplyStatus(TauxiliarymaterialStatusEnum.getEnumNameByName(0,applyStatus));
ta.setLogisticStatus(TauxiliarymaterialStatusEnum.getEnumNameByName(1,logisticStatus));
ta.setReceivingStatus(TauxiliarymaterialStatusEnum.getEnumNameByName(2,receivingStatus));
UpdateColumns(ta);
return new BaseResponse(this.tauxiliarymaterialsMapper.updateByPrimaryKeySelective(ta)>0);
}
@PostMapping("/check")
@ApiOperation(value = "批量审批")
@Transactional
public BaseResponse<Boolean> checkApply(@RequestBody TauxiliarymaterialsCheckDto tauxiliarymaterialsCheckDto){
SessionInfo sessionInfo = tokenService.getUser();
tauxiliarymaterialsCheckDto.getTauxiliarymaterialsCheckVoList().stream()
.filter(dto->{
var exist=this.tauxiliarymaterialsMapper.selectByPrimaryKey(dto.getId());
if(exist==null){
return false;
}else{
//已审批
if(TauxiliarymaterialStatusEnum.getEnumByName(0,exist.getApplyStatus()).getValue()>1){
return false;
}
}
return true;
})
.map(dto->{
var ta=new Tauxiliarymaterials();
ta.setId(dto.getId());
ta.setApprovedQuantity(dto.getApprovedQuantity());
ta.setApplyStatus(tauxiliarymaterialsCheckDto.getApplyStatus());
ta.setCheckSuggestion(tauxiliarymaterialsCheckDto.getCheckSuggestion());
ta.setCheckUser(sessionInfo.getUserId());
ta.setCheckUserName(sessionInfo.getUserName());
ta.setCheckTime(LocalDateTime.now());
UpdateColumns(ta);
return ta;
}).forEach(ta->{
this.tauxiliarymaterialsMapper.updateByPrimaryKeySelective(ta);
});
return new BaseResponse(true);
}
@GetMapping("/bindLogisticOrder")
@ApiOperation(value = "绑定物流单号")
public BaseResponse<Boolean> bindLogisticOrder(@RequestParam @ApiParam("辅材申请单id") int id,@RequestParam @ApiParam("物流单号") String logisticOrder){
var dto=new Tauxiliarymaterials();
dto.setId(id);
dto.setLogisticOrder(logisticOrder);
dto.setLogisticStatus(TauxiliarymaterialStatusEnum.已发货.name());
return new BaseResponse(this.tauxiliarymaterialsMapper.updateByPrimaryKeySelective(dto)>0);
}
@PostMapping("/export")
@ApiOperation(value = "导出辅料申请列表")
public void export(HttpServletResponse response,@RequestBody Tauxiliarymaterials tauxiliarymaterials) throws IOException {
// ExcelUtil<WarehouseInfo> util = new ExcelUtil<WarehouseInfo>(WarehouseInfo.class);
// util.exportExcel(response, list, "仓库信息管理数据");
List<TauxiliarymaterialsExcelVo> data = TauxiliarymaterialsConvert.INSTANCE.convertList(this
.tauxiliarymaterialsMapper.selectTAuxiliaryMaterialsList(tauxiliarymaterials));
// 输出
ExcelUtils.write(response, "辅材申请列表.xls", "辅材信息", TauxiliarymaterialsExcelVo.class, data);
}
@GetMapping("/getRecent3MonthHasChecked")
@ApiOperation(value = "查询最近三个月已审批物料申请单")
public BaseResponse<List<Tauxiliarymaterials>> getRecent3MonthHasChecked(@RequestParam @ApiParam("物料编码") String materialCode){
TauxiliarymaterialsCriteria criteria=new TauxiliarymaterialsCriteria();
criteria.createCriteria().andApplyTimeGreaterThanOrEqualTo(LocalDateTime.now().minusMonths(3))
.andMaterialCodeEqualTo(materialCode)
.andApplyStatusEqualTo(TauxiliarymaterialStatusEnum.已通过.name());
return new BaseResponse<>(this.tauxiliarymaterialsMapper.selectByExample(criteria));
}
}
package com.starcharge.wios.convert;
import com.starcharge.wios.dao.entity.Delivery;
import com.starcharge.wios.vo.DeliveryAddVo;
import com.starcharge.wios.vo.DeliveryExcelVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.convert
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/818:17
*/
@Mapper
public interface DeliveryConvert {
DeliveryConvert INSTANCE = Mappers.getMapper(DeliveryConvert.class);
Delivery convertAddVo(DeliveryAddVo deliveryAddVo);
List<DeliveryExcelVo> convertExcelVoList(List<Delivery> deliveries);
// @Mappings({
// @Mapping(target = "installOrder", expression = "java(excelRowData.get(0))"),
// @Mapping(target = "productBatch", expression = "java(excelRowData.get(1))"),
// @Mapping(target = "quantity", expression = "java(com.starcharge.wios.convert.DeliveryConvert.convertQuantity(excelRowData.get(2)))"),
// @Mapping(target = "materialCategory", expression = "java(excelRowData.get(3))"),
// @Mapping(target = "materialCode", expression = "java(excelRowData.get(4))"),
// @Mapping(target = "materialName", expression = "java(excelRowData.get(5))"),
// @Mapping(target = "materialCompany", expression = "java(excelRowData.get(6))"),
// @Mapping(target = "logisticOrder", expression = "java(excelRowData.get(7))"),
// @Mapping(target = "logisticCompany", expression = "java(excelRowData.get(8))"),
// @Mapping(target = "logisticStatus", expression = "java(excelRowData.get(9))"),
// @Mapping(target = "team", expression = "java(excelRowData.get(10))")
// })
// DeliveryAddVo convertImportAddVo(List<String> excelRowData);
default DeliveryAddVo convertImportAddVo(List<String> excelRowData){
DeliveryAddVo deliveryAddVo=new DeliveryAddVo();
deliveryAddVo.setInstallOrder(excelRowData.get(0));
deliveryAddVo.setProductBatch(excelRowData.get(1));
try {
deliveryAddVo.setQuantity(Integer.parseInt(excelRowData.get(2)));
}catch (Exception e){
deliveryAddVo.setQuantity(0);
}
deliveryAddVo.setMaterialCategory(excelRowData.get(3));
deliveryAddVo.setMaterialCode(excelRowData.get(4));
deliveryAddVo.setMaterialName(excelRowData.get(5));
deliveryAddVo.setMaterialCompany(excelRowData.get(6));
deliveryAddVo.setLogisticOrder(excelRowData.get(7));
deliveryAddVo.setLogisticCompany(excelRowData.get(8));
deliveryAddVo.setLogisticStatus(excelRowData.get(9));
deliveryAddVo.setTeam(excelRowData.get(10));
return deliveryAddVo;
}
}
package com.starcharge.wios.convert;
import com.starcharge.wios.dao.entity.Receivednote;
import com.starcharge.wios.vo.ReceivednoteAddVo;
import com.starcharge.wios.vo.ReceivednoteExcelVo;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.factory.Mappers;
import java.util.List;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.convert
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/814:46
*/
@Mapper
public interface ReceivednoteConvert {
ReceivednoteConvert INSTANCE = Mappers.getMapper(ReceivednoteConvert.class);
Receivednote convertAddVo(ReceivednoteAddVo receivednoteAddVo);
List<ReceivednoteExcelVo> convertExcelVoList(List<Receivednote> receivednotes);
void convertAddSingleVo(ReceivednoteAddVo.SingleReceivenote singleReceivenote,@MappingTarget Receivednote receivednote);
}
package com.starcharge.wios.convert;
import com.starcharge.wios.dao.entity.Reject;
import com.starcharge.wios.vo.RejectAddVo;
import com.starcharge.wios.vo.RejectCheckVo;
import com.starcharge.wios.vo.RejectExcelVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.convert
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/818:37
*/
@Mapper
public interface RejectConvert {
RejectConvert INSTANCE = Mappers.getMapper(RejectConvert.class);
Reject convertAddVo(RejectAddVo deliveryAddVo);
List<RejectExcelVo> convertExcelVoList(List<Reject> rejects);
Reject convertCheckVo(RejectCheckVo rejectCheckVo);
}
package com.starcharge.wios.convert;
import com.starcharge.wios.dao.entity.Tauxiliarymaterials;
import com.starcharge.wios.vo.TauxiliarymaterialsExcelVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.convert
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/9/2710:29
*/
@Mapper
public interface TauxiliarymaterialsConvert {
TauxiliarymaterialsConvert INSTANCE = Mappers.getMapper(TauxiliarymaterialsConvert.class);
List<TauxiliarymaterialsExcelVo> convertList(List<Tauxiliarymaterials> bean);
}
package com.starcharge.wios.dao.entity;
import com.starcharge.wios.validation.CreateEntityGroup;
import com.starcharge.wios.validation.UpdateEntityGroup;
import com.starcharge.wios.vo.PageVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
*@description:: $discription$
*@author:luyc
*@time:2023-10-08 18:07:04 下午
*/
@Data
@ApiModel(value="Delivery", description="发货单")
public class Delivery extends PageVo implements Serializable {
/**
* id
*
* @mbg.generated
*/
@ApiModelProperty(required = true,value = "id")
@NotNull(groups = UpdateEntityGroup.class )
@Min(value = 1,groups = UpdateEntityGroup.class)
private Integer id;
/**
* 发货单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "发货单号")
private String deliveryOrder;
/**
* 安装单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "安装单号")
private String installOrder;
/**
* 产品批次
*
* @mbg.generated
*/
@ApiModelProperty(value = "产品批次")
private String productBatch;
/**
* 发货数量
*
* @mbg.generated
*/
@ApiModelProperty(value = "发货数量")
private Integer quantity;
/**
* 物料类别
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料类别")
private String materialCategory;
/**
* 物料编码
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料编码")
private String materialCode;
/**
* 物料名称
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料名称")
private String materialName;
/**
* 物料厂商
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料厂商")
private String materialCompany;
/**
* 物流单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "物流单号")
private String logisticOrder;
/**
* 物流服务商
*
* @mbg.generated
*/
@ApiModelProperty(value = "物流服务商")
private String logisticCompany;
/**
* 物流状态 未发货 已发货
*
* @mbg.generated
*/
@ApiModelProperty(value = "物流状态 未发货 已发货")
private String logisticStatus;
/**
* 申请团队
*
* @mbg.generated
*/
@ApiModelProperty(value = "申请团队")
private String team;
/**
* 是否产品或辅料
*
* @mbg.generated
*/
@ApiModelProperty(value = "是否产品或辅料 1 是 0 否")
@NotNull(groups = CreateEntityGroup.class)
@Range(min=0,max = 1,message = "是否产品或辅料只可填0或1",groups = UpdateEntityGroup.class)
private Integer isproduct;
/**
* 创建人
*
* @mbg.generated
*/
@ApiModelProperty(value = "创建人")
private String createdBy;
/**
* 创建时间
*
* @mbg.generated
*/
@ApiModelProperty(value = "创建时间")
private LocalDateTime createdTime;
/**
* 更新人
*
* @mbg.generated
*/
@ApiModelProperty(value = "更新人")
private String updatedBy;
/**
* 更新时间
*
* @mbg.generated
*/
@ApiModelProperty(value = "更新时间")
private LocalDateTime updatedTime;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.starcharge.wios.dao.entity;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class DeliveryCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public DeliveryCriteria() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andDeliveryOrderIsNull() {
addCriterion("delivery_order is null");
return (Criteria) this;
}
public Criteria andDeliveryOrderIsNotNull() {
addCriterion("delivery_order is not null");
return (Criteria) this;
}
public Criteria andDeliveryOrderEqualTo(String value) {
addCriterion("delivery_order =", value, "deliveryOrder");
return (Criteria) this;
}
public Criteria andDeliveryOrderNotEqualTo(String value) {
addCriterion("delivery_order <>", value, "deliveryOrder");
return (Criteria) this;
}
public Criteria andDeliveryOrderGreaterThan(String value) {
addCriterion("delivery_order >", value, "deliveryOrder");
return (Criteria) this;
}
public Criteria andDeliveryOrderGreaterThanOrEqualTo(String value) {
addCriterion("delivery_order >=", value, "deliveryOrder");
return (Criteria) this;
}
public Criteria andDeliveryOrderLessThan(String value) {
addCriterion("delivery_order <", value, "deliveryOrder");
return (Criteria) this;
}
public Criteria andDeliveryOrderLessThanOrEqualTo(String value) {
addCriterion("delivery_order <=", value, "deliveryOrder");
return (Criteria) this;
}
public Criteria andDeliveryOrderLike(String value) {
addCriterion("delivery_order like", value, "deliveryOrder");
return (Criteria) this;
}
public Criteria andDeliveryOrderNotLike(String value) {
addCriterion("delivery_order not like", value, "deliveryOrder");
return (Criteria) this;
}
public Criteria andDeliveryOrderIn(List<String> values) {
addCriterion("delivery_order in", values, "deliveryOrder");
return (Criteria) this;
}
public Criteria andDeliveryOrderNotIn(List<String> values) {
addCriterion("delivery_order not in", values, "deliveryOrder");
return (Criteria) this;
}
public Criteria andDeliveryOrderBetween(String value1, String value2) {
addCriterion("delivery_order between", value1, value2, "deliveryOrder");
return (Criteria) this;
}
public Criteria andDeliveryOrderNotBetween(String value1, String value2) {
addCriterion("delivery_order not between", value1, value2, "deliveryOrder");
return (Criteria) this;
}
public Criteria andInstallOrderIsNull() {
addCriterion("install_order is null");
return (Criteria) this;
}
public Criteria andInstallOrderIsNotNull() {
addCriterion("install_order is not null");
return (Criteria) this;
}
public Criteria andInstallOrderEqualTo(String value) {
addCriterion("install_order =", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotEqualTo(String value) {
addCriterion("install_order <>", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderGreaterThan(String value) {
addCriterion("install_order >", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderGreaterThanOrEqualTo(String value) {
addCriterion("install_order >=", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderLessThan(String value) {
addCriterion("install_order <", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderLessThanOrEqualTo(String value) {
addCriterion("install_order <=", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderLike(String value) {
addCriterion("install_order like", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotLike(String value) {
addCriterion("install_order not like", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderIn(List<String> values) {
addCriterion("install_order in", values, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotIn(List<String> values) {
addCriterion("install_order not in", values, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderBetween(String value1, String value2) {
addCriterion("install_order between", value1, value2, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotBetween(String value1, String value2) {
addCriterion("install_order not between", value1, value2, "installOrder");
return (Criteria) this;
}
public Criteria andProductBatchIsNull() {
addCriterion("product_batch is null");
return (Criteria) this;
}
public Criteria andProductBatchIsNotNull() {
addCriterion("product_batch is not null");
return (Criteria) this;
}
public Criteria andProductBatchEqualTo(String value) {
addCriterion("product_batch =", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchNotEqualTo(String value) {
addCriterion("product_batch <>", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchGreaterThan(String value) {
addCriterion("product_batch >", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchGreaterThanOrEqualTo(String value) {
addCriterion("product_batch >=", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchLessThan(String value) {
addCriterion("product_batch <", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchLessThanOrEqualTo(String value) {
addCriterion("product_batch <=", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchLike(String value) {
addCriterion("product_batch like", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchNotLike(String value) {
addCriterion("product_batch not like", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchIn(List<String> values) {
addCriterion("product_batch in", values, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchNotIn(List<String> values) {
addCriterion("product_batch not in", values, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchBetween(String value1, String value2) {
addCriterion("product_batch between", value1, value2, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchNotBetween(String value1, String value2) {
addCriterion("product_batch not between", value1, value2, "productBatch");
return (Criteria) this;
}
public Criteria andQuantityIsNull() {
addCriterion("quantity is null");
return (Criteria) this;
}
public Criteria andQuantityIsNotNull() {
addCriterion("quantity is not null");
return (Criteria) this;
}
public Criteria andQuantityEqualTo(Integer value) {
addCriterion("quantity =", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityNotEqualTo(Integer value) {
addCriterion("quantity <>", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityGreaterThan(Integer value) {
addCriterion("quantity >", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityGreaterThanOrEqualTo(Integer value) {
addCriterion("quantity >=", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityLessThan(Integer value) {
addCriterion("quantity <", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityLessThanOrEqualTo(Integer value) {
addCriterion("quantity <=", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityIn(List<Integer> values) {
addCriterion("quantity in", values, "quantity");
return (Criteria) this;
}
public Criteria andQuantityNotIn(List<Integer> values) {
addCriterion("quantity not in", values, "quantity");
return (Criteria) this;
}
public Criteria andQuantityBetween(Integer value1, Integer value2) {
addCriterion("quantity between", value1, value2, "quantity");
return (Criteria) this;
}
public Criteria andQuantityNotBetween(Integer value1, Integer value2) {
addCriterion("quantity not between", value1, value2, "quantity");
return (Criteria) this;
}
public Criteria andMaterialCategoryIsNull() {
addCriterion("material_category is null");
return (Criteria) this;
}
public Criteria andMaterialCategoryIsNotNull() {
addCriterion("material_category is not null");
return (Criteria) this;
}
public Criteria andMaterialCategoryEqualTo(String value) {
addCriterion("material_category =", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryNotEqualTo(String value) {
addCriterion("material_category <>", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryGreaterThan(String value) {
addCriterion("material_category >", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryGreaterThanOrEqualTo(String value) {
addCriterion("material_category >=", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryLessThan(String value) {
addCriterion("material_category <", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryLessThanOrEqualTo(String value) {
addCriterion("material_category <=", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryLike(String value) {
addCriterion("material_category like", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryNotLike(String value) {
addCriterion("material_category not like", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryIn(List<String> values) {
addCriterion("material_category in", values, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryNotIn(List<String> values) {
addCriterion("material_category not in", values, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryBetween(String value1, String value2) {
addCriterion("material_category between", value1, value2, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryNotBetween(String value1, String value2) {
addCriterion("material_category not between", value1, value2, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCodeIsNull() {
addCriterion("material_code is null");
return (Criteria) this;
}
public Criteria andMaterialCodeIsNotNull() {
addCriterion("material_code is not null");
return (Criteria) this;
}
public Criteria andMaterialCodeEqualTo(String value) {
addCriterion("material_code =", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotEqualTo(String value) {
addCriterion("material_code <>", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeGreaterThan(String value) {
addCriterion("material_code >", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeGreaterThanOrEqualTo(String value) {
addCriterion("material_code >=", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeLessThan(String value) {
addCriterion("material_code <", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeLessThanOrEqualTo(String value) {
addCriterion("material_code <=", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeLike(String value) {
addCriterion("material_code like", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotLike(String value) {
addCriterion("material_code not like", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeIn(List<String> values) {
addCriterion("material_code in", values, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotIn(List<String> values) {
addCriterion("material_code not in", values, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeBetween(String value1, String value2) {
addCriterion("material_code between", value1, value2, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotBetween(String value1, String value2) {
addCriterion("material_code not between", value1, value2, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialNameIsNull() {
addCriterion("material_name is null");
return (Criteria) this;
}
public Criteria andMaterialNameIsNotNull() {
addCriterion("material_name is not null");
return (Criteria) this;
}
public Criteria andMaterialNameEqualTo(String value) {
addCriterion("material_name =", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotEqualTo(String value) {
addCriterion("material_name <>", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameGreaterThan(String value) {
addCriterion("material_name >", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameGreaterThanOrEqualTo(String value) {
addCriterion("material_name >=", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameLessThan(String value) {
addCriterion("material_name <", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameLessThanOrEqualTo(String value) {
addCriterion("material_name <=", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameLike(String value) {
addCriterion("material_name like", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotLike(String value) {
addCriterion("material_name not like", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameIn(List<String> values) {
addCriterion("material_name in", values, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotIn(List<String> values) {
addCriterion("material_name not in", values, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameBetween(String value1, String value2) {
addCriterion("material_name between", value1, value2, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotBetween(String value1, String value2) {
addCriterion("material_name not between", value1, value2, "materialName");
return (Criteria) this;
}
public Criteria andMaterialCompanyIsNull() {
addCriterion("material_company is null");
return (Criteria) this;
}
public Criteria andMaterialCompanyIsNotNull() {
addCriterion("material_company is not null");
return (Criteria) this;
}
public Criteria andMaterialCompanyEqualTo(String value) {
addCriterion("material_company =", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyNotEqualTo(String value) {
addCriterion("material_company <>", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyGreaterThan(String value) {
addCriterion("material_company >", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyGreaterThanOrEqualTo(String value) {
addCriterion("material_company >=", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyLessThan(String value) {
addCriterion("material_company <", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyLessThanOrEqualTo(String value) {
addCriterion("material_company <=", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyLike(String value) {
addCriterion("material_company like", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyNotLike(String value) {
addCriterion("material_company not like", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyIn(List<String> values) {
addCriterion("material_company in", values, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyNotIn(List<String> values) {
addCriterion("material_company not in", values, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyBetween(String value1, String value2) {
addCriterion("material_company between", value1, value2, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyNotBetween(String value1, String value2) {
addCriterion("material_company not between", value1, value2, "materialCompany");
return (Criteria) this;
}
public Criteria andLogisticOrderIsNull() {
addCriterion("logistic_order is null");
return (Criteria) this;
}
public Criteria andLogisticOrderIsNotNull() {
addCriterion("logistic_order is not null");
return (Criteria) this;
}
public Criteria andLogisticOrderEqualTo(String value) {
addCriterion("logistic_order =", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderNotEqualTo(String value) {
addCriterion("logistic_order <>", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderGreaterThan(String value) {
addCriterion("logistic_order >", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderGreaterThanOrEqualTo(String value) {
addCriterion("logistic_order >=", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderLessThan(String value) {
addCriterion("logistic_order <", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderLessThanOrEqualTo(String value) {
addCriterion("logistic_order <=", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderLike(String value) {
addCriterion("logistic_order like", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderNotLike(String value) {
addCriterion("logistic_order not like", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderIn(List<String> values) {
addCriterion("logistic_order in", values, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderNotIn(List<String> values) {
addCriterion("logistic_order not in", values, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderBetween(String value1, String value2) {
addCriterion("logistic_order between", value1, value2, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderNotBetween(String value1, String value2) {
addCriterion("logistic_order not between", value1, value2, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticCompanyIsNull() {
addCriterion("logistic_company is null");
return (Criteria) this;
}
public Criteria andLogisticCompanyIsNotNull() {
addCriterion("logistic_company is not null");
return (Criteria) this;
}
public Criteria andLogisticCompanyEqualTo(String value) {
addCriterion("logistic_company =", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyNotEqualTo(String value) {
addCriterion("logistic_company <>", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyGreaterThan(String value) {
addCriterion("logistic_company >", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyGreaterThanOrEqualTo(String value) {
addCriterion("logistic_company >=", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyLessThan(String value) {
addCriterion("logistic_company <", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyLessThanOrEqualTo(String value) {
addCriterion("logistic_company <=", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyLike(String value) {
addCriterion("logistic_company like", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyNotLike(String value) {
addCriterion("logistic_company not like", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyIn(List<String> values) {
addCriterion("logistic_company in", values, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyNotIn(List<String> values) {
addCriterion("logistic_company not in", values, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyBetween(String value1, String value2) {
addCriterion("logistic_company between", value1, value2, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyNotBetween(String value1, String value2) {
addCriterion("logistic_company not between", value1, value2, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticStatusIsNull() {
addCriterion("logistic_status is null");
return (Criteria) this;
}
public Criteria andLogisticStatusIsNotNull() {
addCriterion("logistic_status is not null");
return (Criteria) this;
}
public Criteria andLogisticStatusEqualTo(String value) {
addCriterion("logistic_status =", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusNotEqualTo(String value) {
addCriterion("logistic_status <>", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusGreaterThan(String value) {
addCriterion("logistic_status >", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusGreaterThanOrEqualTo(String value) {
addCriterion("logistic_status >=", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusLessThan(String value) {
addCriterion("logistic_status <", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusLessThanOrEqualTo(String value) {
addCriterion("logistic_status <=", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusLike(String value) {
addCriterion("logistic_status like", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusNotLike(String value) {
addCriterion("logistic_status not like", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusIn(List<String> values) {
addCriterion("logistic_status in", values, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusNotIn(List<String> values) {
addCriterion("logistic_status not in", values, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusBetween(String value1, String value2) {
addCriterion("logistic_status between", value1, value2, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusNotBetween(String value1, String value2) {
addCriterion("logistic_status not between", value1, value2, "logisticStatus");
return (Criteria) this;
}
public Criteria andTeamIsNull() {
addCriterion("team is null");
return (Criteria) this;
}
public Criteria andTeamIsNotNull() {
addCriterion("team is not null");
return (Criteria) this;
}
public Criteria andTeamEqualTo(String value) {
addCriterion("team =", value, "team");
return (Criteria) this;
}
public Criteria andTeamNotEqualTo(String value) {
addCriterion("team <>", value, "team");
return (Criteria) this;
}
public Criteria andTeamGreaterThan(String value) {
addCriterion("team >", value, "team");
return (Criteria) this;
}
public Criteria andTeamGreaterThanOrEqualTo(String value) {
addCriterion("team >=", value, "team");
return (Criteria) this;
}
public Criteria andTeamLessThan(String value) {
addCriterion("team <", value, "team");
return (Criteria) this;
}
public Criteria andTeamLessThanOrEqualTo(String value) {
addCriterion("team <=", value, "team");
return (Criteria) this;
}
public Criteria andTeamLike(String value) {
addCriterion("team like", value, "team");
return (Criteria) this;
}
public Criteria andTeamNotLike(String value) {
addCriterion("team not like", value, "team");
return (Criteria) this;
}
public Criteria andTeamIn(List<String> values) {
addCriterion("team in", values, "team");
return (Criteria) this;
}
public Criteria andTeamNotIn(List<String> values) {
addCriterion("team not in", values, "team");
return (Criteria) this;
}
public Criteria andTeamBetween(String value1, String value2) {
addCriterion("team between", value1, value2, "team");
return (Criteria) this;
}
public Criteria andTeamNotBetween(String value1, String value2) {
addCriterion("team not between", value1, value2, "team");
return (Criteria) this;
}
public Criteria andIsproductIsNull() {
addCriterion("isproduct is null");
return (Criteria) this;
}
public Criteria andIsproductIsNotNull() {
addCriterion("isproduct is not null");
return (Criteria) this;
}
public Criteria andIsproductEqualTo(Integer value) {
addCriterion("isproduct =", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductNotEqualTo(Integer value) {
addCriterion("isproduct <>", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductGreaterThan(Integer value) {
addCriterion("isproduct >", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductGreaterThanOrEqualTo(Integer value) {
addCriterion("isproduct >=", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductLessThan(Integer value) {
addCriterion("isproduct <", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductLessThanOrEqualTo(Integer value) {
addCriterion("isproduct <=", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductIn(List<Integer> values) {
addCriterion("isproduct in", values, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductNotIn(List<Integer> values) {
addCriterion("isproduct not in", values, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductBetween(Integer value1, Integer value2) {
addCriterion("isproduct between", value1, value2, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductNotBetween(Integer value1, Integer value2) {
addCriterion("isproduct not between", value1, value2, "isproduct");
return (Criteria) this;
}
public Criteria andCreatedByIsNull() {
addCriterion("CREATED_BY is null");
return (Criteria) this;
}
public Criteria andCreatedByIsNotNull() {
addCriterion("CREATED_BY is not null");
return (Criteria) this;
}
public Criteria andCreatedByEqualTo(String value) {
addCriterion("CREATED_BY =", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotEqualTo(String value) {
addCriterion("CREATED_BY <>", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByGreaterThan(String value) {
addCriterion("CREATED_BY >", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByGreaterThanOrEqualTo(String value) {
addCriterion("CREATED_BY >=", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByLessThan(String value) {
addCriterion("CREATED_BY <", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByLessThanOrEqualTo(String value) {
addCriterion("CREATED_BY <=", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByLike(String value) {
addCriterion("CREATED_BY like", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotLike(String value) {
addCriterion("CREATED_BY not like", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByIn(List<String> values) {
addCriterion("CREATED_BY in", values, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotIn(List<String> values) {
addCriterion("CREATED_BY not in", values, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByBetween(String value1, String value2) {
addCriterion("CREATED_BY between", value1, value2, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotBetween(String value1, String value2) {
addCriterion("CREATED_BY not between", value1, value2, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedTimeIsNull() {
addCriterion("CREATED_TIME is null");
return (Criteria) this;
}
public Criteria andCreatedTimeIsNotNull() {
addCriterion("CREATED_TIME is not null");
return (Criteria) this;
}
public Criteria andCreatedTimeEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME =", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeNotEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME <>", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeGreaterThan(LocalDateTime value) {
addCriterion("CREATED_TIME >", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME >=", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeLessThan(LocalDateTime value) {
addCriterion("CREATED_TIME <", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME <=", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeIn(List<LocalDateTime> values) {
addCriterion("CREATED_TIME in", values, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeNotIn(List<LocalDateTime> values) {
addCriterion("CREATED_TIME not in", values, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("CREATED_TIME between", value1, value2, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("CREATED_TIME not between", value1, value2, "createdTime");
return (Criteria) this;
}
public Criteria andUpdatedByIsNull() {
addCriterion("UPDATED_BY is null");
return (Criteria) this;
}
public Criteria andUpdatedByIsNotNull() {
addCriterion("UPDATED_BY is not null");
return (Criteria) this;
}
public Criteria andUpdatedByEqualTo(String value) {
addCriterion("UPDATED_BY =", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotEqualTo(String value) {
addCriterion("UPDATED_BY <>", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByGreaterThan(String value) {
addCriterion("UPDATED_BY >", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByGreaterThanOrEqualTo(String value) {
addCriterion("UPDATED_BY >=", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByLessThan(String value) {
addCriterion("UPDATED_BY <", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByLessThanOrEqualTo(String value) {
addCriterion("UPDATED_BY <=", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByLike(String value) {
addCriterion("UPDATED_BY like", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotLike(String value) {
addCriterion("UPDATED_BY not like", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByIn(List<String> values) {
addCriterion("UPDATED_BY in", values, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotIn(List<String> values) {
addCriterion("UPDATED_BY not in", values, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByBetween(String value1, String value2) {
addCriterion("UPDATED_BY between", value1, value2, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotBetween(String value1, String value2) {
addCriterion("UPDATED_BY not between", value1, value2, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedTimeIsNull() {
addCriterion("UPDATED_TIME is null");
return (Criteria) this;
}
public Criteria andUpdatedTimeIsNotNull() {
addCriterion("UPDATED_TIME is not null");
return (Criteria) this;
}
public Criteria andUpdatedTimeEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME =", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeNotEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME <>", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeGreaterThan(LocalDateTime value) {
addCriterion("UPDATED_TIME >", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME >=", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeLessThan(LocalDateTime value) {
addCriterion("UPDATED_TIME <", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME <=", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeIn(List<LocalDateTime> values) {
addCriterion("UPDATED_TIME in", values, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeNotIn(List<LocalDateTime> values) {
addCriterion("UPDATED_TIME not in", values, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("UPDATED_TIME between", value1, value2, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("UPDATED_TIME not between", value1, value2, "updatedTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
package com.starcharge.wios.dao.entity;
import com.starcharge.wios.validation.CreateEntityGroup;
import com.starcharge.wios.validation.UpdateEntityGroup;
import com.starcharge.wios.vo.PageVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
*@description:: $discription$
*@author:luyc
*@time:2023-10-08 14:18:14 下午
*/
@Data
@ApiModel(value="Receivednote", description="收货单")
public class Receivednote extends PageVo implements Serializable {
/**
* id
*
* @mbg.generated
*/
@ApiModelProperty(required = true,value = "id")
@NotNull(groups =UpdateEntityGroup.class )
@Min(value = 1,groups = UpdateEntityGroup.class)
private Integer id;
/**
* 收货单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "收货单号")
private String receivedOrder;
/**
* 安装单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "安装单号")
private String installOrder;
/**
* 产品批次
*
* @mbg.generated
*/
@ApiModelProperty(value = "产品批次")
private String productBatch;
/**
* 物料类别
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料类别")
private String materialCategory;
/**
* 物料编码
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料编码")
private String materialCode;
/**
* 物料名称
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料名称")
private String materialName;
/**
* 到货仓库
*
* @mbg.generated
*/
@ApiModelProperty(value = "到货仓库")
private String arrivalWarehouse;
/**
* 到货仓库id
*
* @mbg.generated
*/
@ApiModelProperty(value = "到货仓库id")
private Integer arrivalWarehouseId;
/**
* 收货人
*
* @mbg.generated
*/
@ApiModelProperty(value = "收货人")
private String receiver;
/**
* 收货时间
*
* @mbg.generated
*/
@ApiModelProperty(value = "收货时间")
private LocalDateTime receivingTime;
/**
* 到货数量
*
* @mbg.generated
*/
@ApiModelProperty(value = "到货数量")
private Integer arrivalQuantity;
/**
* 辅料申请单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "辅料申请单号")
private Integer auxiliaryId;
/**
* 是否产品或辅料
*
* @mbg.generated
*/
@ApiModelProperty(value = "是否产品或辅料 1 是 0 否")
@NotNull(groups = CreateEntityGroup.class)
@Range(min=0,max = 1,message = "是否产品或辅料只可填0或1",groups = UpdateEntityGroup.class)
private Integer isproduct;
/**
* 创建人
*
* @mbg.generated
*/
@ApiModelProperty(value = "创建人")
private String createdBy;
/**
* 创建时间
*
* @mbg.generated
*/
@ApiModelProperty(value = "创建时间")
private LocalDateTime createdTime;
/**
* 更新人
*
* @mbg.generated
*/
@ApiModelProperty(value = "更新人")
private String updatedBy;
/**
* 更新时间
*
* @mbg.generated
*/
@ApiModelProperty(value = "更新时间")
private LocalDateTime updatedTime;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.starcharge.wios.dao.entity;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class ReceivednoteCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public ReceivednoteCriteria() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andReceivedOrderIsNull() {
addCriterion("received_order is null");
return (Criteria) this;
}
public Criteria andReceivedOrderIsNotNull() {
addCriterion("received_order is not null");
return (Criteria) this;
}
public Criteria andReceivedOrderEqualTo(String value) {
addCriterion("received_order =", value, "receivedOrder");
return (Criteria) this;
}
public Criteria andReceivedOrderNotEqualTo(String value) {
addCriterion("received_order <>", value, "receivedOrder");
return (Criteria) this;
}
public Criteria andReceivedOrderGreaterThan(String value) {
addCriterion("received_order >", value, "receivedOrder");
return (Criteria) this;
}
public Criteria andReceivedOrderGreaterThanOrEqualTo(String value) {
addCriterion("received_order >=", value, "receivedOrder");
return (Criteria) this;
}
public Criteria andReceivedOrderLessThan(String value) {
addCriterion("received_order <", value, "receivedOrder");
return (Criteria) this;
}
public Criteria andReceivedOrderLessThanOrEqualTo(String value) {
addCriterion("received_order <=", value, "receivedOrder");
return (Criteria) this;
}
public Criteria andReceivedOrderLike(String value) {
addCriterion("received_order like", value, "receivedOrder");
return (Criteria) this;
}
public Criteria andReceivedOrderNotLike(String value) {
addCriterion("received_order not like", value, "receivedOrder");
return (Criteria) this;
}
public Criteria andReceivedOrderIn(List<String> values) {
addCriterion("received_order in", values, "receivedOrder");
return (Criteria) this;
}
public Criteria andReceivedOrderNotIn(List<String> values) {
addCriterion("received_order not in", values, "receivedOrder");
return (Criteria) this;
}
public Criteria andReceivedOrderBetween(String value1, String value2) {
addCriterion("received_order between", value1, value2, "receivedOrder");
return (Criteria) this;
}
public Criteria andReceivedOrderNotBetween(String value1, String value2) {
addCriterion("received_order not between", value1, value2, "receivedOrder");
return (Criteria) this;
}
public Criteria andInstallOrderIsNull() {
addCriterion("install_order is null");
return (Criteria) this;
}
public Criteria andInstallOrderIsNotNull() {
addCriterion("install_order is not null");
return (Criteria) this;
}
public Criteria andInstallOrderEqualTo(String value) {
addCriterion("install_order =", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotEqualTo(String value) {
addCriterion("install_order <>", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderGreaterThan(String value) {
addCriterion("install_order >", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderGreaterThanOrEqualTo(String value) {
addCriterion("install_order >=", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderLessThan(String value) {
addCriterion("install_order <", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderLessThanOrEqualTo(String value) {
addCriterion("install_order <=", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderLike(String value) {
addCriterion("install_order like", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotLike(String value) {
addCriterion("install_order not like", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderIn(List<String> values) {
addCriterion("install_order in", values, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotIn(List<String> values) {
addCriterion("install_order not in", values, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderBetween(String value1, String value2) {
addCriterion("install_order between", value1, value2, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotBetween(String value1, String value2) {
addCriterion("install_order not between", value1, value2, "installOrder");
return (Criteria) this;
}
public Criteria andProductBatchIsNull() {
addCriterion("product_batch is null");
return (Criteria) this;
}
public Criteria andProductBatchIsNotNull() {
addCriterion("product_batch is not null");
return (Criteria) this;
}
public Criteria andProductBatchEqualTo(String value) {
addCriterion("product_batch =", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchNotEqualTo(String value) {
addCriterion("product_batch <>", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchGreaterThan(String value) {
addCriterion("product_batch >", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchGreaterThanOrEqualTo(String value) {
addCriterion("product_batch >=", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchLessThan(String value) {
addCriterion("product_batch <", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchLessThanOrEqualTo(String value) {
addCriterion("product_batch <=", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchLike(String value) {
addCriterion("product_batch like", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchNotLike(String value) {
addCriterion("product_batch not like", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchIn(List<String> values) {
addCriterion("product_batch in", values, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchNotIn(List<String> values) {
addCriterion("product_batch not in", values, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchBetween(String value1, String value2) {
addCriterion("product_batch between", value1, value2, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchNotBetween(String value1, String value2) {
addCriterion("product_batch not between", value1, value2, "productBatch");
return (Criteria) this;
}
public Criteria andMaterialCategoryIsNull() {
addCriterion("material_category is null");
return (Criteria) this;
}
public Criteria andMaterialCategoryIsNotNull() {
addCriterion("material_category is not null");
return (Criteria) this;
}
public Criteria andMaterialCategoryEqualTo(String value) {
addCriterion("material_category =", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryNotEqualTo(String value) {
addCriterion("material_category <>", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryGreaterThan(String value) {
addCriterion("material_category >", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryGreaterThanOrEqualTo(String value) {
addCriterion("material_category >=", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryLessThan(String value) {
addCriterion("material_category <", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryLessThanOrEqualTo(String value) {
addCriterion("material_category <=", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryLike(String value) {
addCriterion("material_category like", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryNotLike(String value) {
addCriterion("material_category not like", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryIn(List<String> values) {
addCriterion("material_category in", values, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryNotIn(List<String> values) {
addCriterion("material_category not in", values, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryBetween(String value1, String value2) {
addCriterion("material_category between", value1, value2, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryNotBetween(String value1, String value2) {
addCriterion("material_category not between", value1, value2, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCodeIsNull() {
addCriterion("material_code is null");
return (Criteria) this;
}
public Criteria andMaterialCodeIsNotNull() {
addCriterion("material_code is not null");
return (Criteria) this;
}
public Criteria andMaterialCodeEqualTo(String value) {
addCriterion("material_code =", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotEqualTo(String value) {
addCriterion("material_code <>", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeGreaterThan(String value) {
addCriterion("material_code >", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeGreaterThanOrEqualTo(String value) {
addCriterion("material_code >=", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeLessThan(String value) {
addCriterion("material_code <", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeLessThanOrEqualTo(String value) {
addCriterion("material_code <=", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeLike(String value) {
addCriterion("material_code like", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotLike(String value) {
addCriterion("material_code not like", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeIn(List<String> values) {
addCriterion("material_code in", values, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotIn(List<String> values) {
addCriterion("material_code not in", values, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeBetween(String value1, String value2) {
addCriterion("material_code between", value1, value2, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotBetween(String value1, String value2) {
addCriterion("material_code not between", value1, value2, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialNameIsNull() {
addCriterion("material_name is null");
return (Criteria) this;
}
public Criteria andMaterialNameIsNotNull() {
addCriterion("material_name is not null");
return (Criteria) this;
}
public Criteria andMaterialNameEqualTo(String value) {
addCriterion("material_name =", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotEqualTo(String value) {
addCriterion("material_name <>", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameGreaterThan(String value) {
addCriterion("material_name >", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameGreaterThanOrEqualTo(String value) {
addCriterion("material_name >=", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameLessThan(String value) {
addCriterion("material_name <", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameLessThanOrEqualTo(String value) {
addCriterion("material_name <=", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameLike(String value) {
addCriterion("material_name like", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotLike(String value) {
addCriterion("material_name not like", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameIn(List<String> values) {
addCriterion("material_name in", values, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotIn(List<String> values) {
addCriterion("material_name not in", values, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameBetween(String value1, String value2) {
addCriterion("material_name between", value1, value2, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotBetween(String value1, String value2) {
addCriterion("material_name not between", value1, value2, "materialName");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIsNull() {
addCriterion("arrival_warehouse is null");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIsNotNull() {
addCriterion("arrival_warehouse is not null");
return (Criteria) this;
}
public Criteria andArrivalWarehouseEqualTo(String value) {
addCriterion("arrival_warehouse =", value, "arrivalWarehouse");
return (Criteria) this;
}
public Criteria andArrivalWarehouseNotEqualTo(String value) {
addCriterion("arrival_warehouse <>", value, "arrivalWarehouse");
return (Criteria) this;
}
public Criteria andArrivalWarehouseGreaterThan(String value) {
addCriterion("arrival_warehouse >", value, "arrivalWarehouse");
return (Criteria) this;
}
public Criteria andArrivalWarehouseGreaterThanOrEqualTo(String value) {
addCriterion("arrival_warehouse >=", value, "arrivalWarehouse");
return (Criteria) this;
}
public Criteria andArrivalWarehouseLessThan(String value) {
addCriterion("arrival_warehouse <", value, "arrivalWarehouse");
return (Criteria) this;
}
public Criteria andArrivalWarehouseLessThanOrEqualTo(String value) {
addCriterion("arrival_warehouse <=", value, "arrivalWarehouse");
return (Criteria) this;
}
public Criteria andArrivalWarehouseLike(String value) {
addCriterion("arrival_warehouse like", value, "arrivalWarehouse");
return (Criteria) this;
}
public Criteria andArrivalWarehouseNotLike(String value) {
addCriterion("arrival_warehouse not like", value, "arrivalWarehouse");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIn(List<String> values) {
addCriterion("arrival_warehouse in", values, "arrivalWarehouse");
return (Criteria) this;
}
public Criteria andArrivalWarehouseNotIn(List<String> values) {
addCriterion("arrival_warehouse not in", values, "arrivalWarehouse");
return (Criteria) this;
}
public Criteria andArrivalWarehouseBetween(String value1, String value2) {
addCriterion("arrival_warehouse between", value1, value2, "arrivalWarehouse");
return (Criteria) this;
}
public Criteria andArrivalWarehouseNotBetween(String value1, String value2) {
addCriterion("arrival_warehouse not between", value1, value2, "arrivalWarehouse");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIdIsNull() {
addCriterion("arrival_warehouse_id is null");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIdIsNotNull() {
addCriterion("arrival_warehouse_id is not null");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIdEqualTo(Integer value) {
addCriterion("arrival_warehouse_id =", value, "arrivalWarehouseId");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIdNotEqualTo(Integer value) {
addCriterion("arrival_warehouse_id <>", value, "arrivalWarehouseId");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIdGreaterThan(Integer value) {
addCriterion("arrival_warehouse_id >", value, "arrivalWarehouseId");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIdGreaterThanOrEqualTo(Integer value) {
addCriterion("arrival_warehouse_id >=", value, "arrivalWarehouseId");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIdLessThan(Integer value) {
addCriterion("arrival_warehouse_id <", value, "arrivalWarehouseId");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIdLessThanOrEqualTo(Integer value) {
addCriterion("arrival_warehouse_id <=", value, "arrivalWarehouseId");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIdIn(List<Integer> values) {
addCriterion("arrival_warehouse_id in", values, "arrivalWarehouseId");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIdNotIn(List<Integer> values) {
addCriterion("arrival_warehouse_id not in", values, "arrivalWarehouseId");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIdBetween(Integer value1, Integer value2) {
addCriterion("arrival_warehouse_id between", value1, value2, "arrivalWarehouseId");
return (Criteria) this;
}
public Criteria andArrivalWarehouseIdNotBetween(Integer value1, Integer value2) {
addCriterion("arrival_warehouse_id not between", value1, value2, "arrivalWarehouseId");
return (Criteria) this;
}
public Criteria andReceiverIsNull() {
addCriterion("receiver is null");
return (Criteria) this;
}
public Criteria andReceiverIsNotNull() {
addCriterion("receiver is not null");
return (Criteria) this;
}
public Criteria andReceiverEqualTo(String value) {
addCriterion("receiver =", value, "receiver");
return (Criteria) this;
}
public Criteria andReceiverNotEqualTo(String value) {
addCriterion("receiver <>", value, "receiver");
return (Criteria) this;
}
public Criteria andReceiverGreaterThan(String value) {
addCriterion("receiver >", value, "receiver");
return (Criteria) this;
}
public Criteria andReceiverGreaterThanOrEqualTo(String value) {
addCriterion("receiver >=", value, "receiver");
return (Criteria) this;
}
public Criteria andReceiverLessThan(String value) {
addCriterion("receiver <", value, "receiver");
return (Criteria) this;
}
public Criteria andReceiverLessThanOrEqualTo(String value) {
addCriterion("receiver <=", value, "receiver");
return (Criteria) this;
}
public Criteria andReceiverLike(String value) {
addCriterion("receiver like", value, "receiver");
return (Criteria) this;
}
public Criteria andReceiverNotLike(String value) {
addCriterion("receiver not like", value, "receiver");
return (Criteria) this;
}
public Criteria andReceiverIn(List<String> values) {
addCriterion("receiver in", values, "receiver");
return (Criteria) this;
}
public Criteria andReceiverNotIn(List<String> values) {
addCriterion("receiver not in", values, "receiver");
return (Criteria) this;
}
public Criteria andReceiverBetween(String value1, String value2) {
addCriterion("receiver between", value1, value2, "receiver");
return (Criteria) this;
}
public Criteria andReceiverNotBetween(String value1, String value2) {
addCriterion("receiver not between", value1, value2, "receiver");
return (Criteria) this;
}
public Criteria andReceivingTimeIsNull() {
addCriterion("receiving_time is null");
return (Criteria) this;
}
public Criteria andReceivingTimeIsNotNull() {
addCriterion("receiving_time is not null");
return (Criteria) this;
}
public Criteria andReceivingTimeEqualTo(LocalDateTime value) {
addCriterion("receiving_time =", value, "receivingTime");
return (Criteria) this;
}
public Criteria andReceivingTimeNotEqualTo(LocalDateTime value) {
addCriterion("receiving_time <>", value, "receivingTime");
return (Criteria) this;
}
public Criteria andReceivingTimeGreaterThan(LocalDateTime value) {
addCriterion("receiving_time >", value, "receivingTime");
return (Criteria) this;
}
public Criteria andReceivingTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("receiving_time >=", value, "receivingTime");
return (Criteria) this;
}
public Criteria andReceivingTimeLessThan(LocalDateTime value) {
addCriterion("receiving_time <", value, "receivingTime");
return (Criteria) this;
}
public Criteria andReceivingTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("receiving_time <=", value, "receivingTime");
return (Criteria) this;
}
public Criteria andReceivingTimeIn(List<LocalDateTime> values) {
addCriterion("receiving_time in", values, "receivingTime");
return (Criteria) this;
}
public Criteria andReceivingTimeNotIn(List<LocalDateTime> values) {
addCriterion("receiving_time not in", values, "receivingTime");
return (Criteria) this;
}
public Criteria andReceivingTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("receiving_time between", value1, value2, "receivingTime");
return (Criteria) this;
}
public Criteria andReceivingTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("receiving_time not between", value1, value2, "receivingTime");
return (Criteria) this;
}
public Criteria andArrivalQuantityIsNull() {
addCriterion("arrival_quantity is null");
return (Criteria) this;
}
public Criteria andArrivalQuantityIsNotNull() {
addCriterion("arrival_quantity is not null");
return (Criteria) this;
}
public Criteria andArrivalQuantityEqualTo(Integer value) {
addCriterion("arrival_quantity =", value, "arrivalQuantity");
return (Criteria) this;
}
public Criteria andArrivalQuantityNotEqualTo(Integer value) {
addCriterion("arrival_quantity <>", value, "arrivalQuantity");
return (Criteria) this;
}
public Criteria andArrivalQuantityGreaterThan(Integer value) {
addCriterion("arrival_quantity >", value, "arrivalQuantity");
return (Criteria) this;
}
public Criteria andArrivalQuantityGreaterThanOrEqualTo(Integer value) {
addCriterion("arrival_quantity >=", value, "arrivalQuantity");
return (Criteria) this;
}
public Criteria andArrivalQuantityLessThan(Integer value) {
addCriterion("arrival_quantity <", value, "arrivalQuantity");
return (Criteria) this;
}
public Criteria andArrivalQuantityLessThanOrEqualTo(Integer value) {
addCriterion("arrival_quantity <=", value, "arrivalQuantity");
return (Criteria) this;
}
public Criteria andArrivalQuantityIn(List<Integer> values) {
addCriterion("arrival_quantity in", values, "arrivalQuantity");
return (Criteria) this;
}
public Criteria andArrivalQuantityNotIn(List<Integer> values) {
addCriterion("arrival_quantity not in", values, "arrivalQuantity");
return (Criteria) this;
}
public Criteria andArrivalQuantityBetween(Integer value1, Integer value2) {
addCriterion("arrival_quantity between", value1, value2, "arrivalQuantity");
return (Criteria) this;
}
public Criteria andArrivalQuantityNotBetween(Integer value1, Integer value2) {
addCriterion("arrival_quantity not between", value1, value2, "arrivalQuantity");
return (Criteria) this;
}
public Criteria andAuxiliaryIdIsNull() {
addCriterion("auxiliary_id is null");
return (Criteria) this;
}
public Criteria andAuxiliaryIdIsNotNull() {
addCriterion("auxiliary_id is not null");
return (Criteria) this;
}
public Criteria andAuxiliaryIdEqualTo(Integer value) {
addCriterion("auxiliary_id =", value, "auxiliaryId");
return (Criteria) this;
}
public Criteria andAuxiliaryIdNotEqualTo(Integer value) {
addCriterion("auxiliary_id <>", value, "auxiliaryId");
return (Criteria) this;
}
public Criteria andAuxiliaryIdGreaterThan(Integer value) {
addCriterion("auxiliary_id >", value, "auxiliaryId");
return (Criteria) this;
}
public Criteria andAuxiliaryIdGreaterThanOrEqualTo(Integer value) {
addCriterion("auxiliary_id >=", value, "auxiliaryId");
return (Criteria) this;
}
public Criteria andAuxiliaryIdLessThan(Integer value) {
addCriterion("auxiliary_id <", value, "auxiliaryId");
return (Criteria) this;
}
public Criteria andAuxiliaryIdLessThanOrEqualTo(Integer value) {
addCriterion("auxiliary_id <=", value, "auxiliaryId");
return (Criteria) this;
}
public Criteria andAuxiliaryIdIn(List<Integer> values) {
addCriterion("auxiliary_id in", values, "auxiliaryId");
return (Criteria) this;
}
public Criteria andAuxiliaryIdNotIn(List<Integer> values) {
addCriterion("auxiliary_id not in", values, "auxiliaryId");
return (Criteria) this;
}
public Criteria andAuxiliaryIdBetween(Integer value1, Integer value2) {
addCriterion("auxiliary_id between", value1, value2, "auxiliaryId");
return (Criteria) this;
}
public Criteria andAuxiliaryIdNotBetween(Integer value1, Integer value2) {
addCriterion("auxiliary_id not between", value1, value2, "auxiliaryId");
return (Criteria) this;
}
public Criteria andIsproductIsNull() {
addCriterion("isproduct is null");
return (Criteria) this;
}
public Criteria andIsproductIsNotNull() {
addCriterion("isproduct is not null");
return (Criteria) this;
}
public Criteria andIsproductEqualTo(Integer value) {
addCriterion("isproduct =", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductNotEqualTo(Integer value) {
addCriterion("isproduct <>", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductGreaterThan(Integer value) {
addCriterion("isproduct >", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductGreaterThanOrEqualTo(Integer value) {
addCriterion("isproduct >=", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductLessThan(Integer value) {
addCriterion("isproduct <", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductLessThanOrEqualTo(Integer value) {
addCriterion("isproduct <=", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductIn(List<Integer> values) {
addCriterion("isproduct in", values, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductNotIn(List<Integer> values) {
addCriterion("isproduct not in", values, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductBetween(Integer value1, Integer value2) {
addCriterion("isproduct between", value1, value2, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductNotBetween(Integer value1, Integer value2) {
addCriterion("isproduct not between", value1, value2, "isproduct");
return (Criteria) this;
}
public Criteria andCreatedByIsNull() {
addCriterion("CREATED_BY is null");
return (Criteria) this;
}
public Criteria andCreatedByIsNotNull() {
addCriterion("CREATED_BY is not null");
return (Criteria) this;
}
public Criteria andCreatedByEqualTo(String value) {
addCriterion("CREATED_BY =", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotEqualTo(String value) {
addCriterion("CREATED_BY <>", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByGreaterThan(String value) {
addCriterion("CREATED_BY >", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByGreaterThanOrEqualTo(String value) {
addCriterion("CREATED_BY >=", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByLessThan(String value) {
addCriterion("CREATED_BY <", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByLessThanOrEqualTo(String value) {
addCriterion("CREATED_BY <=", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByLike(String value) {
addCriterion("CREATED_BY like", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotLike(String value) {
addCriterion("CREATED_BY not like", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByIn(List<String> values) {
addCriterion("CREATED_BY in", values, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotIn(List<String> values) {
addCriterion("CREATED_BY not in", values, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByBetween(String value1, String value2) {
addCriterion("CREATED_BY between", value1, value2, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotBetween(String value1, String value2) {
addCriterion("CREATED_BY not between", value1, value2, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedTimeIsNull() {
addCriterion("CREATED_TIME is null");
return (Criteria) this;
}
public Criteria andCreatedTimeIsNotNull() {
addCriterion("CREATED_TIME is not null");
return (Criteria) this;
}
public Criteria andCreatedTimeEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME =", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeNotEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME <>", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeGreaterThan(LocalDateTime value) {
addCriterion("CREATED_TIME >", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME >=", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeLessThan(LocalDateTime value) {
addCriterion("CREATED_TIME <", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME <=", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeIn(List<LocalDateTime> values) {
addCriterion("CREATED_TIME in", values, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeNotIn(List<LocalDateTime> values) {
addCriterion("CREATED_TIME not in", values, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("CREATED_TIME between", value1, value2, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("CREATED_TIME not between", value1, value2, "createdTime");
return (Criteria) this;
}
public Criteria andUpdatedByIsNull() {
addCriterion("UPDATED_BY is null");
return (Criteria) this;
}
public Criteria andUpdatedByIsNotNull() {
addCriterion("UPDATED_BY is not null");
return (Criteria) this;
}
public Criteria andUpdatedByEqualTo(String value) {
addCriterion("UPDATED_BY =", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotEqualTo(String value) {
addCriterion("UPDATED_BY <>", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByGreaterThan(String value) {
addCriterion("UPDATED_BY >", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByGreaterThanOrEqualTo(String value) {
addCriterion("UPDATED_BY >=", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByLessThan(String value) {
addCriterion("UPDATED_BY <", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByLessThanOrEqualTo(String value) {
addCriterion("UPDATED_BY <=", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByLike(String value) {
addCriterion("UPDATED_BY like", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotLike(String value) {
addCriterion("UPDATED_BY not like", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByIn(List<String> values) {
addCriterion("UPDATED_BY in", values, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotIn(List<String> values) {
addCriterion("UPDATED_BY not in", values, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByBetween(String value1, String value2) {
addCriterion("UPDATED_BY between", value1, value2, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotBetween(String value1, String value2) {
addCriterion("UPDATED_BY not between", value1, value2, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedTimeIsNull() {
addCriterion("UPDATED_TIME is null");
return (Criteria) this;
}
public Criteria andUpdatedTimeIsNotNull() {
addCriterion("UPDATED_TIME is not null");
return (Criteria) this;
}
public Criteria andUpdatedTimeEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME =", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeNotEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME <>", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeGreaterThan(LocalDateTime value) {
addCriterion("UPDATED_TIME >", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME >=", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeLessThan(LocalDateTime value) {
addCriterion("UPDATED_TIME <", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME <=", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeIn(List<LocalDateTime> values) {
addCriterion("UPDATED_TIME in", values, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeNotIn(List<LocalDateTime> values) {
addCriterion("UPDATED_TIME not in", values, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("UPDATED_TIME between", value1, value2, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("UPDATED_TIME not between", value1, value2, "updatedTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
package com.starcharge.wios.dao.entity;
import com.starcharge.wios.vo.PageVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
*@description:: $discription$
*@author:luyc
*@time:2023-10-08 18:34:39 下午
*/
@Data
@ApiModel(value="Reject", description="退货单")
public class Reject extends PageVo implements Serializable {
/**
* id
*
* @mbg.generated
*/
@ApiModelProperty(required = true,value = "id")
private Integer id;
/**
* 退货单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "退货单号")
private String rejectOrder;
/**
* 安装单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "安装单号")
private String installOrder;
/**
* 产品批次
*
* @mbg.generated
*/
@ApiModelProperty(value = "产品批次")
private String productBatch;
/**
* 退货数量
*
* @mbg.generated
*/
@ApiModelProperty(value = "退货数量")
private Integer quantity;
/**
* 物料类别
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料类别")
private String materialCategory;
/**
* 物料编码
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料编码")
private String materialCode;
/**
* 物料名称
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料名称")
private String materialName;
/**
* 物料厂商
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料厂商")
private String materialCompany;
/**
* 物流单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "物流单号")
private String logisticOrder;
/**
* 物流服务商
*
* @mbg.generated
*/
@ApiModelProperty(value = "物流服务商")
private String logisticCompany;
/**
* 退货仓库
*
* @mbg.generated
*/
@ApiModelProperty(value = "退货仓库")
private String warehouseName;
/**
* 退货仓库id
*
* @mbg.generated
*/
@ApiModelProperty(value = "退货仓库id")
private Integer warehouseId;
/**
* 退货原因
*
* @mbg.generated
*/
@ApiModelProperty(value = "退货原因")
private String reason;
/**
* 退货状态 未审核 已通过 已驳回
*
* @mbg.generated
*/
@ApiModelProperty(value = "退货状态 已申请 已驳回 已通过 已关闭")
private String status;
/**
* 审批时间
*
* @mbg.generated
*/
@ApiModelProperty(value = "审批时间")
private LocalDateTime checkTime;
/**
* 审核人
*
* @mbg.generated
*/
@ApiModelProperty(value = "审核人")
private String checkUser;
/**
* 审核人姓名
*
* @mbg.generated
*/
@ApiModelProperty(value = "审核人姓名")
private String checkUserName;
/**
* 是否产品或辅料
*
* @mbg.generated
*/
@ApiModelProperty(value = "是否产品或辅料 1 是 0 否")
@Range(min=0,max = 1,message = "是否产品或辅料只可填0或1")
private Integer isproduct;
/**
* 创建人
*
* @mbg.generated
*/
@ApiModelProperty(value = "创建人")
private String createdBy;
/**
* 创建时间
*
* @mbg.generated
*/
@ApiModelProperty(value = "创建时间")
private LocalDateTime createdTime;
/**
* 更新人
*
* @mbg.generated
*/
@ApiModelProperty(value = "更新人")
private String updatedBy;
/**
* 更新时间
*
* @mbg.generated
*/
@ApiModelProperty(value = "更新时间")
private LocalDateTime updatedTime;
/**
* 审核意见
*
* @mbg.generated
*/
@ApiModelProperty(value = "审核意见")
private String checkSuggestion;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.starcharge.wios.dao.entity;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class RejectCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public RejectCriteria() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andRejectOrderIsNull() {
addCriterion("reject_order is null");
return (Criteria) this;
}
public Criteria andRejectOrderIsNotNull() {
addCriterion("reject_order is not null");
return (Criteria) this;
}
public Criteria andRejectOrderEqualTo(String value) {
addCriterion("reject_order =", value, "rejectOrder");
return (Criteria) this;
}
public Criteria andRejectOrderNotEqualTo(String value) {
addCriterion("reject_order <>", value, "rejectOrder");
return (Criteria) this;
}
public Criteria andRejectOrderGreaterThan(String value) {
addCriterion("reject_order >", value, "rejectOrder");
return (Criteria) this;
}
public Criteria andRejectOrderGreaterThanOrEqualTo(String value) {
addCriterion("reject_order >=", value, "rejectOrder");
return (Criteria) this;
}
public Criteria andRejectOrderLessThan(String value) {
addCriterion("reject_order <", value, "rejectOrder");
return (Criteria) this;
}
public Criteria andRejectOrderLessThanOrEqualTo(String value) {
addCriterion("reject_order <=", value, "rejectOrder");
return (Criteria) this;
}
public Criteria andRejectOrderLike(String value) {
addCriterion("reject_order like", value, "rejectOrder");
return (Criteria) this;
}
public Criteria andRejectOrderNotLike(String value) {
addCriterion("reject_order not like", value, "rejectOrder");
return (Criteria) this;
}
public Criteria andRejectOrderIn(List<String> values) {
addCriterion("reject_order in", values, "rejectOrder");
return (Criteria) this;
}
public Criteria andRejectOrderNotIn(List<String> values) {
addCriterion("reject_order not in", values, "rejectOrder");
return (Criteria) this;
}
public Criteria andRejectOrderBetween(String value1, String value2) {
addCriterion("reject_order between", value1, value2, "rejectOrder");
return (Criteria) this;
}
public Criteria andRejectOrderNotBetween(String value1, String value2) {
addCriterion("reject_order not between", value1, value2, "rejectOrder");
return (Criteria) this;
}
public Criteria andInstallOrderIsNull() {
addCriterion("install_order is null");
return (Criteria) this;
}
public Criteria andInstallOrderIsNotNull() {
addCriterion("install_order is not null");
return (Criteria) this;
}
public Criteria andInstallOrderEqualTo(String value) {
addCriterion("install_order =", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotEqualTo(String value) {
addCriterion("install_order <>", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderGreaterThan(String value) {
addCriterion("install_order >", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderGreaterThanOrEqualTo(String value) {
addCriterion("install_order >=", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderLessThan(String value) {
addCriterion("install_order <", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderLessThanOrEqualTo(String value) {
addCriterion("install_order <=", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderLike(String value) {
addCriterion("install_order like", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotLike(String value) {
addCriterion("install_order not like", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderIn(List<String> values) {
addCriterion("install_order in", values, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotIn(List<String> values) {
addCriterion("install_order not in", values, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderBetween(String value1, String value2) {
addCriterion("install_order between", value1, value2, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotBetween(String value1, String value2) {
addCriterion("install_order not between", value1, value2, "installOrder");
return (Criteria) this;
}
public Criteria andProductBatchIsNull() {
addCriterion("product_batch is null");
return (Criteria) this;
}
public Criteria andProductBatchIsNotNull() {
addCriterion("product_batch is not null");
return (Criteria) this;
}
public Criteria andProductBatchEqualTo(String value) {
addCriterion("product_batch =", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchNotEqualTo(String value) {
addCriterion("product_batch <>", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchGreaterThan(String value) {
addCriterion("product_batch >", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchGreaterThanOrEqualTo(String value) {
addCriterion("product_batch >=", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchLessThan(String value) {
addCriterion("product_batch <", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchLessThanOrEqualTo(String value) {
addCriterion("product_batch <=", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchLike(String value) {
addCriterion("product_batch like", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchNotLike(String value) {
addCriterion("product_batch not like", value, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchIn(List<String> values) {
addCriterion("product_batch in", values, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchNotIn(List<String> values) {
addCriterion("product_batch not in", values, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchBetween(String value1, String value2) {
addCriterion("product_batch between", value1, value2, "productBatch");
return (Criteria) this;
}
public Criteria andProductBatchNotBetween(String value1, String value2) {
addCriterion("product_batch not between", value1, value2, "productBatch");
return (Criteria) this;
}
public Criteria andQuantityIsNull() {
addCriterion("quantity is null");
return (Criteria) this;
}
public Criteria andQuantityIsNotNull() {
addCriterion("quantity is not null");
return (Criteria) this;
}
public Criteria andQuantityEqualTo(Integer value) {
addCriterion("quantity =", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityNotEqualTo(Integer value) {
addCriterion("quantity <>", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityGreaterThan(Integer value) {
addCriterion("quantity >", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityGreaterThanOrEqualTo(Integer value) {
addCriterion("quantity >=", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityLessThan(Integer value) {
addCriterion("quantity <", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityLessThanOrEqualTo(Integer value) {
addCriterion("quantity <=", value, "quantity");
return (Criteria) this;
}
public Criteria andQuantityIn(List<Integer> values) {
addCriterion("quantity in", values, "quantity");
return (Criteria) this;
}
public Criteria andQuantityNotIn(List<Integer> values) {
addCriterion("quantity not in", values, "quantity");
return (Criteria) this;
}
public Criteria andQuantityBetween(Integer value1, Integer value2) {
addCriterion("quantity between", value1, value2, "quantity");
return (Criteria) this;
}
public Criteria andQuantityNotBetween(Integer value1, Integer value2) {
addCriterion("quantity not between", value1, value2, "quantity");
return (Criteria) this;
}
public Criteria andMaterialCategoryIsNull() {
addCriterion("material_category is null");
return (Criteria) this;
}
public Criteria andMaterialCategoryIsNotNull() {
addCriterion("material_category is not null");
return (Criteria) this;
}
public Criteria andMaterialCategoryEqualTo(String value) {
addCriterion("material_category =", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryNotEqualTo(String value) {
addCriterion("material_category <>", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryGreaterThan(String value) {
addCriterion("material_category >", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryGreaterThanOrEqualTo(String value) {
addCriterion("material_category >=", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryLessThan(String value) {
addCriterion("material_category <", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryLessThanOrEqualTo(String value) {
addCriterion("material_category <=", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryLike(String value) {
addCriterion("material_category like", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryNotLike(String value) {
addCriterion("material_category not like", value, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryIn(List<String> values) {
addCriterion("material_category in", values, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryNotIn(List<String> values) {
addCriterion("material_category not in", values, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryBetween(String value1, String value2) {
addCriterion("material_category between", value1, value2, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCategoryNotBetween(String value1, String value2) {
addCriterion("material_category not between", value1, value2, "materialCategory");
return (Criteria) this;
}
public Criteria andMaterialCodeIsNull() {
addCriterion("material_code is null");
return (Criteria) this;
}
public Criteria andMaterialCodeIsNotNull() {
addCriterion("material_code is not null");
return (Criteria) this;
}
public Criteria andMaterialCodeEqualTo(String value) {
addCriterion("material_code =", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotEqualTo(String value) {
addCriterion("material_code <>", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeGreaterThan(String value) {
addCriterion("material_code >", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeGreaterThanOrEqualTo(String value) {
addCriterion("material_code >=", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeLessThan(String value) {
addCriterion("material_code <", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeLessThanOrEqualTo(String value) {
addCriterion("material_code <=", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeLike(String value) {
addCriterion("material_code like", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotLike(String value) {
addCriterion("material_code not like", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeIn(List<String> values) {
addCriterion("material_code in", values, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotIn(List<String> values) {
addCriterion("material_code not in", values, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeBetween(String value1, String value2) {
addCriterion("material_code between", value1, value2, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotBetween(String value1, String value2) {
addCriterion("material_code not between", value1, value2, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialNameIsNull() {
addCriterion("material_name is null");
return (Criteria) this;
}
public Criteria andMaterialNameIsNotNull() {
addCriterion("material_name is not null");
return (Criteria) this;
}
public Criteria andMaterialNameEqualTo(String value) {
addCriterion("material_name =", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotEqualTo(String value) {
addCriterion("material_name <>", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameGreaterThan(String value) {
addCriterion("material_name >", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameGreaterThanOrEqualTo(String value) {
addCriterion("material_name >=", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameLessThan(String value) {
addCriterion("material_name <", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameLessThanOrEqualTo(String value) {
addCriterion("material_name <=", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameLike(String value) {
addCriterion("material_name like", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotLike(String value) {
addCriterion("material_name not like", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameIn(List<String> values) {
addCriterion("material_name in", values, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotIn(List<String> values) {
addCriterion("material_name not in", values, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameBetween(String value1, String value2) {
addCriterion("material_name between", value1, value2, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotBetween(String value1, String value2) {
addCriterion("material_name not between", value1, value2, "materialName");
return (Criteria) this;
}
public Criteria andMaterialCompanyIsNull() {
addCriterion("material_company is null");
return (Criteria) this;
}
public Criteria andMaterialCompanyIsNotNull() {
addCriterion("material_company is not null");
return (Criteria) this;
}
public Criteria andMaterialCompanyEqualTo(String value) {
addCriterion("material_company =", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyNotEqualTo(String value) {
addCriterion("material_company <>", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyGreaterThan(String value) {
addCriterion("material_company >", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyGreaterThanOrEqualTo(String value) {
addCriterion("material_company >=", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyLessThan(String value) {
addCriterion("material_company <", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyLessThanOrEqualTo(String value) {
addCriterion("material_company <=", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyLike(String value) {
addCriterion("material_company like", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyNotLike(String value) {
addCriterion("material_company not like", value, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyIn(List<String> values) {
addCriterion("material_company in", values, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyNotIn(List<String> values) {
addCriterion("material_company not in", values, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyBetween(String value1, String value2) {
addCriterion("material_company between", value1, value2, "materialCompany");
return (Criteria) this;
}
public Criteria andMaterialCompanyNotBetween(String value1, String value2) {
addCriterion("material_company not between", value1, value2, "materialCompany");
return (Criteria) this;
}
public Criteria andLogisticOrderIsNull() {
addCriterion("logistic_order is null");
return (Criteria) this;
}
public Criteria andLogisticOrderIsNotNull() {
addCriterion("logistic_order is not null");
return (Criteria) this;
}
public Criteria andLogisticOrderEqualTo(String value) {
addCriterion("logistic_order =", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderNotEqualTo(String value) {
addCriterion("logistic_order <>", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderGreaterThan(String value) {
addCriterion("logistic_order >", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderGreaterThanOrEqualTo(String value) {
addCriterion("logistic_order >=", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderLessThan(String value) {
addCriterion("logistic_order <", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderLessThanOrEqualTo(String value) {
addCriterion("logistic_order <=", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderLike(String value) {
addCriterion("logistic_order like", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderNotLike(String value) {
addCriterion("logistic_order not like", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderIn(List<String> values) {
addCriterion("logistic_order in", values, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderNotIn(List<String> values) {
addCriterion("logistic_order not in", values, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderBetween(String value1, String value2) {
addCriterion("logistic_order between", value1, value2, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderNotBetween(String value1, String value2) {
addCriterion("logistic_order not between", value1, value2, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticCompanyIsNull() {
addCriterion("logistic_company is null");
return (Criteria) this;
}
public Criteria andLogisticCompanyIsNotNull() {
addCriterion("logistic_company is not null");
return (Criteria) this;
}
public Criteria andLogisticCompanyEqualTo(String value) {
addCriterion("logistic_company =", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyNotEqualTo(String value) {
addCriterion("logistic_company <>", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyGreaterThan(String value) {
addCriterion("logistic_company >", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyGreaterThanOrEqualTo(String value) {
addCriterion("logistic_company >=", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyLessThan(String value) {
addCriterion("logistic_company <", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyLessThanOrEqualTo(String value) {
addCriterion("logistic_company <=", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyLike(String value) {
addCriterion("logistic_company like", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyNotLike(String value) {
addCriterion("logistic_company not like", value, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyIn(List<String> values) {
addCriterion("logistic_company in", values, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyNotIn(List<String> values) {
addCriterion("logistic_company not in", values, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyBetween(String value1, String value2) {
addCriterion("logistic_company between", value1, value2, "logisticCompany");
return (Criteria) this;
}
public Criteria andLogisticCompanyNotBetween(String value1, String value2) {
addCriterion("logistic_company not between", value1, value2, "logisticCompany");
return (Criteria) this;
}
public Criteria andWarehouseNameIsNull() {
addCriterion("warehouse_name is null");
return (Criteria) this;
}
public Criteria andWarehouseNameIsNotNull() {
addCriterion("warehouse_name is not null");
return (Criteria) this;
}
public Criteria andWarehouseNameEqualTo(String value) {
addCriterion("warehouse_name =", value, "warehouseName");
return (Criteria) this;
}
public Criteria andWarehouseNameNotEqualTo(String value) {
addCriterion("warehouse_name <>", value, "warehouseName");
return (Criteria) this;
}
public Criteria andWarehouseNameGreaterThan(String value) {
addCriterion("warehouse_name >", value, "warehouseName");
return (Criteria) this;
}
public Criteria andWarehouseNameGreaterThanOrEqualTo(String value) {
addCriterion("warehouse_name >=", value, "warehouseName");
return (Criteria) this;
}
public Criteria andWarehouseNameLessThan(String value) {
addCriterion("warehouse_name <", value, "warehouseName");
return (Criteria) this;
}
public Criteria andWarehouseNameLessThanOrEqualTo(String value) {
addCriterion("warehouse_name <=", value, "warehouseName");
return (Criteria) this;
}
public Criteria andWarehouseNameLike(String value) {
addCriterion("warehouse_name like", value, "warehouseName");
return (Criteria) this;
}
public Criteria andWarehouseNameNotLike(String value) {
addCriterion("warehouse_name not like", value, "warehouseName");
return (Criteria) this;
}
public Criteria andWarehouseNameIn(List<String> values) {
addCriterion("warehouse_name in", values, "warehouseName");
return (Criteria) this;
}
public Criteria andWarehouseNameNotIn(List<String> values) {
addCriterion("warehouse_name not in", values, "warehouseName");
return (Criteria) this;
}
public Criteria andWarehouseNameBetween(String value1, String value2) {
addCriterion("warehouse_name between", value1, value2, "warehouseName");
return (Criteria) this;
}
public Criteria andWarehouseNameNotBetween(String value1, String value2) {
addCriterion("warehouse_name not between", value1, value2, "warehouseName");
return (Criteria) this;
}
public Criteria andWarehouseIdIsNull() {
addCriterion("warehouse_id is null");
return (Criteria) this;
}
public Criteria andWarehouseIdIsNotNull() {
addCriterion("warehouse_id is not null");
return (Criteria) this;
}
public Criteria andWarehouseIdEqualTo(Integer value) {
addCriterion("warehouse_id =", value, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdNotEqualTo(Integer value) {
addCriterion("warehouse_id <>", value, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdGreaterThan(Integer value) {
addCriterion("warehouse_id >", value, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdGreaterThanOrEqualTo(Integer value) {
addCriterion("warehouse_id >=", value, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdLessThan(Integer value) {
addCriterion("warehouse_id <", value, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdLessThanOrEqualTo(Integer value) {
addCriterion("warehouse_id <=", value, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdIn(List<Integer> values) {
addCriterion("warehouse_id in", values, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdNotIn(List<Integer> values) {
addCriterion("warehouse_id not in", values, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdBetween(Integer value1, Integer value2) {
addCriterion("warehouse_id between", value1, value2, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdNotBetween(Integer value1, Integer value2) {
addCriterion("warehouse_id not between", value1, value2, "warehouseId");
return (Criteria) this;
}
public Criteria andReasonIsNull() {
addCriterion("reason is null");
return (Criteria) this;
}
public Criteria andReasonIsNotNull() {
addCriterion("reason is not null");
return (Criteria) this;
}
public Criteria andReasonEqualTo(String value) {
addCriterion("reason =", value, "reason");
return (Criteria) this;
}
public Criteria andReasonNotEqualTo(String value) {
addCriterion("reason <>", value, "reason");
return (Criteria) this;
}
public Criteria andReasonGreaterThan(String value) {
addCriterion("reason >", value, "reason");
return (Criteria) this;
}
public Criteria andReasonGreaterThanOrEqualTo(String value) {
addCriterion("reason >=", value, "reason");
return (Criteria) this;
}
public Criteria andReasonLessThan(String value) {
addCriterion("reason <", value, "reason");
return (Criteria) this;
}
public Criteria andReasonLessThanOrEqualTo(String value) {
addCriterion("reason <=", value, "reason");
return (Criteria) this;
}
public Criteria andReasonLike(String value) {
addCriterion("reason like", value, "reason");
return (Criteria) this;
}
public Criteria andReasonNotLike(String value) {
addCriterion("reason not like", value, "reason");
return (Criteria) this;
}
public Criteria andReasonIn(List<String> values) {
addCriterion("reason in", values, "reason");
return (Criteria) this;
}
public Criteria andReasonNotIn(List<String> values) {
addCriterion("reason not in", values, "reason");
return (Criteria) this;
}
public Criteria andReasonBetween(String value1, String value2) {
addCriterion("reason between", value1, value2, "reason");
return (Criteria) this;
}
public Criteria andReasonNotBetween(String value1, String value2) {
addCriterion("reason not between", value1, value2, "reason");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(String value) {
addCriterion("status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(String value) {
addCriterion("status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(String value) {
addCriterion("status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(String value) {
addCriterion("status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(String value) {
addCriterion("status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(String value) {
addCriterion("status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLike(String value) {
addCriterion("status like", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotLike(String value) {
addCriterion("status not like", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<String> values) {
addCriterion("status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<String> values) {
addCriterion("status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(String value1, String value2) {
addCriterion("status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(String value1, String value2) {
addCriterion("status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andCheckTimeIsNull() {
addCriterion("check_time is null");
return (Criteria) this;
}
public Criteria andCheckTimeIsNotNull() {
addCriterion("check_time is not null");
return (Criteria) this;
}
public Criteria andCheckTimeEqualTo(LocalDateTime value) {
addCriterion("check_time =", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotEqualTo(LocalDateTime value) {
addCriterion("check_time <>", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeGreaterThan(LocalDateTime value) {
addCriterion("check_time >", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("check_time >=", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLessThan(LocalDateTime value) {
addCriterion("check_time <", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("check_time <=", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeIn(List<LocalDateTime> values) {
addCriterion("check_time in", values, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotIn(List<LocalDateTime> values) {
addCriterion("check_time not in", values, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("check_time between", value1, value2, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("check_time not between", value1, value2, "checkTime");
return (Criteria) this;
}
public Criteria andCheckUserIsNull() {
addCriterion("check_user is null");
return (Criteria) this;
}
public Criteria andCheckUserIsNotNull() {
addCriterion("check_user is not null");
return (Criteria) this;
}
public Criteria andCheckUserEqualTo(String value) {
addCriterion("check_user =", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserNotEqualTo(String value) {
addCriterion("check_user <>", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserGreaterThan(String value) {
addCriterion("check_user >", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserGreaterThanOrEqualTo(String value) {
addCriterion("check_user >=", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserLessThan(String value) {
addCriterion("check_user <", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserLessThanOrEqualTo(String value) {
addCriterion("check_user <=", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserLike(String value) {
addCriterion("check_user like", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserNotLike(String value) {
addCriterion("check_user not like", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserIn(List<String> values) {
addCriterion("check_user in", values, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserNotIn(List<String> values) {
addCriterion("check_user not in", values, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserBetween(String value1, String value2) {
addCriterion("check_user between", value1, value2, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserNotBetween(String value1, String value2) {
addCriterion("check_user not between", value1, value2, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserNameIsNull() {
addCriterion("check_user_name is null");
return (Criteria) this;
}
public Criteria andCheckUserNameIsNotNull() {
addCriterion("check_user_name is not null");
return (Criteria) this;
}
public Criteria andCheckUserNameEqualTo(String value) {
addCriterion("check_user_name =", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameNotEqualTo(String value) {
addCriterion("check_user_name <>", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameGreaterThan(String value) {
addCriterion("check_user_name >", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameGreaterThanOrEqualTo(String value) {
addCriterion("check_user_name >=", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameLessThan(String value) {
addCriterion("check_user_name <", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameLessThanOrEqualTo(String value) {
addCriterion("check_user_name <=", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameLike(String value) {
addCriterion("check_user_name like", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameNotLike(String value) {
addCriterion("check_user_name not like", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameIn(List<String> values) {
addCriterion("check_user_name in", values, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameNotIn(List<String> values) {
addCriterion("check_user_name not in", values, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameBetween(String value1, String value2) {
addCriterion("check_user_name between", value1, value2, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameNotBetween(String value1, String value2) {
addCriterion("check_user_name not between", value1, value2, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckSuggestionIsNull() {
addCriterion("check_suggestion is null");
return (Criteria) this;
}
public Criteria andCheckSuggestionIsNotNull() {
addCriterion("check_suggestion is not null");
return (Criteria) this;
}
public Criteria andCheckSuggestionEqualTo(String value) {
addCriterion("check_suggestion =", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionNotEqualTo(String value) {
addCriterion("check_suggestion <>", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionGreaterThan(String value) {
addCriterion("check_suggestion >", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionGreaterThanOrEqualTo(String value) {
addCriterion("check_suggestion >=", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionLessThan(String value) {
addCriterion("check_suggestion <", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionLessThanOrEqualTo(String value) {
addCriterion("check_suggestion <=", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionLike(String value) {
addCriterion("check_suggestion like", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionNotLike(String value) {
addCriterion("check_suggestion not like", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionIn(List<String> values) {
addCriterion("check_suggestion in", values, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionNotIn(List<String> values) {
addCriterion("check_suggestion not in", values, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionBetween(String value1, String value2) {
addCriterion("check_suggestion between", value1, value2, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionNotBetween(String value1, String value2) {
addCriterion("check_suggestion not between", value1, value2, "checkSuggestion");
return (Criteria) this;
}
public Criteria andIsproductIsNull() {
addCriterion("isproduct is null");
return (Criteria) this;
}
public Criteria andIsproductIsNotNull() {
addCriterion("isproduct is not null");
return (Criteria) this;
}
public Criteria andIsproductEqualTo(Integer value) {
addCriterion("isproduct =", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductNotEqualTo(Integer value) {
addCriterion("isproduct <>", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductGreaterThan(Integer value) {
addCriterion("isproduct >", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductGreaterThanOrEqualTo(Integer value) {
addCriterion("isproduct >=", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductLessThan(Integer value) {
addCriterion("isproduct <", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductLessThanOrEqualTo(Integer value) {
addCriterion("isproduct <=", value, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductIn(List<Integer> values) {
addCriterion("isproduct in", values, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductNotIn(List<Integer> values) {
addCriterion("isproduct not in", values, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductBetween(Integer value1, Integer value2) {
addCriterion("isproduct between", value1, value2, "isproduct");
return (Criteria) this;
}
public Criteria andIsproductNotBetween(Integer value1, Integer value2) {
addCriterion("isproduct not between", value1, value2, "isproduct");
return (Criteria) this;
}
public Criteria andCreatedByIsNull() {
addCriterion("CREATED_BY is null");
return (Criteria) this;
}
public Criteria andCreatedByIsNotNull() {
addCriterion("CREATED_BY is not null");
return (Criteria) this;
}
public Criteria andCreatedByEqualTo(String value) {
addCriterion("CREATED_BY =", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotEqualTo(String value) {
addCriterion("CREATED_BY <>", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByGreaterThan(String value) {
addCriterion("CREATED_BY >", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByGreaterThanOrEqualTo(String value) {
addCriterion("CREATED_BY >=", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByLessThan(String value) {
addCriterion("CREATED_BY <", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByLessThanOrEqualTo(String value) {
addCriterion("CREATED_BY <=", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByLike(String value) {
addCriterion("CREATED_BY like", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotLike(String value) {
addCriterion("CREATED_BY not like", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByIn(List<String> values) {
addCriterion("CREATED_BY in", values, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotIn(List<String> values) {
addCriterion("CREATED_BY not in", values, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByBetween(String value1, String value2) {
addCriterion("CREATED_BY between", value1, value2, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotBetween(String value1, String value2) {
addCriterion("CREATED_BY not between", value1, value2, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedTimeIsNull() {
addCriterion("CREATED_TIME is null");
return (Criteria) this;
}
public Criteria andCreatedTimeIsNotNull() {
addCriterion("CREATED_TIME is not null");
return (Criteria) this;
}
public Criteria andCreatedTimeEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME =", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeNotEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME <>", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeGreaterThan(LocalDateTime value) {
addCriterion("CREATED_TIME >", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME >=", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeLessThan(LocalDateTime value) {
addCriterion("CREATED_TIME <", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME <=", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeIn(List<LocalDateTime> values) {
addCriterion("CREATED_TIME in", values, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeNotIn(List<LocalDateTime> values) {
addCriterion("CREATED_TIME not in", values, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("CREATED_TIME between", value1, value2, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("CREATED_TIME not between", value1, value2, "createdTime");
return (Criteria) this;
}
public Criteria andUpdatedByIsNull() {
addCriterion("UPDATED_BY is null");
return (Criteria) this;
}
public Criteria andUpdatedByIsNotNull() {
addCriterion("UPDATED_BY is not null");
return (Criteria) this;
}
public Criteria andUpdatedByEqualTo(String value) {
addCriterion("UPDATED_BY =", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotEqualTo(String value) {
addCriterion("UPDATED_BY <>", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByGreaterThan(String value) {
addCriterion("UPDATED_BY >", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByGreaterThanOrEqualTo(String value) {
addCriterion("UPDATED_BY >=", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByLessThan(String value) {
addCriterion("UPDATED_BY <", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByLessThanOrEqualTo(String value) {
addCriterion("UPDATED_BY <=", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByLike(String value) {
addCriterion("UPDATED_BY like", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotLike(String value) {
addCriterion("UPDATED_BY not like", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByIn(List<String> values) {
addCriterion("UPDATED_BY in", values, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotIn(List<String> values) {
addCriterion("UPDATED_BY not in", values, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByBetween(String value1, String value2) {
addCriterion("UPDATED_BY between", value1, value2, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotBetween(String value1, String value2) {
addCriterion("UPDATED_BY not between", value1, value2, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedTimeIsNull() {
addCriterion("UPDATED_TIME is null");
return (Criteria) this;
}
public Criteria andUpdatedTimeIsNotNull() {
addCriterion("UPDATED_TIME is not null");
return (Criteria) this;
}
public Criteria andUpdatedTimeEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME =", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeNotEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME <>", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeGreaterThan(LocalDateTime value) {
addCriterion("UPDATED_TIME >", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME >=", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeLessThan(LocalDateTime value) {
addCriterion("UPDATED_TIME <", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME <=", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeIn(List<LocalDateTime> values) {
addCriterion("UPDATED_TIME in", values, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeNotIn(List<LocalDateTime> values) {
addCriterion("UPDATED_TIME not in", values, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("UPDATED_TIME between", value1, value2, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("UPDATED_TIME not between", value1, value2, "updatedTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
package com.starcharge.wios.dao.entity;
import com.starcharge.wios.validation.CreateEntityGroup;
import com.starcharge.wios.vo.PageVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
*@description:: 辅材申请
*@author:luyc
*@time:2023-09-25 15:59:51 下午
*/
@Data
@ApiModel(value="Tauxiliarymaterials", description="辅材申请")
public class Tauxiliarymaterials extends PageVo implements Serializable{
/**
* id
*
* @mbg.generated
*/
@ApiModelProperty(required = true,value = "id")
private Integer id;
/**
* 物料编码
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料编码")
@NotEmpty(groups = {CreateEntityGroup.class})
@NotNull(groups = {CreateEntityGroup.class})
private String materialCode;
/**
* 物料名称
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料名称")
@NotEmpty(groups = {CreateEntityGroup.class})
@NotNull(groups = {CreateEntityGroup.class})
private String materialName;
/**
* 计量单位
*
* @mbg.generated
*/
@ApiModelProperty(value = "计量单位")
@NotEmpty(groups = {CreateEntityGroup.class})
@NotNull(groups = {CreateEntityGroup.class})
private String measurementUnit;
/**
* 申请数量
*
* @mbg.generated
*/
@ApiModelProperty(value = "申请数量")
@NotEmpty(groups = {CreateEntityGroup.class})
@NotNull(groups = {CreateEntityGroup.class})
private String applyQuantity;
/**
* 批准数量
*
* @mbg.generated
*/
@ApiModelProperty(value = "批准数量")
private String approvedQuantity;
/**
* SAP当前库存数
*
* @mbg.generated
*/
@ApiModelProperty(value = "SAP当前库存数")
private String currentySap;
/**
* 近一个月用量(SAP)
*
* @mbg.generated
*/
@ApiModelProperty(value = "近一个月用量(SAP)")
private String monthAmountSap;
/**
* 近一年用量
*
* @mbg.generated
*/
@ApiModelProperty(value = "近一年用量")
private String yearAmount;
/**
* 申请状态 已申请 已驳回 已通过 已关闭
*
* @mbg.generated
*/
@ApiModelProperty(value = "申请状态 已申请 已驳回 已通过 已关闭")
private String applyStatus;
/**
* 申请团队
*
* @mbg.generated
*/
@ApiModelProperty(value = "申请团队")
@NotEmpty(groups = {CreateEntityGroup.class})
@NotNull(groups = {CreateEntityGroup.class})
private String team;
/**
* 物流状态 未发货 已发货
*
* @mbg.generated
*/
@ApiModelProperty(value = "物流状态 未发货 已发货")
private String logisticStatus;
/**
* 收货状态 未收货 已收货
*
* @mbg.generated
*/
@ApiModelProperty(value = "收货状态 未收货 已收货")
private String receivingStatus;
/**
* 收货人
*
* @mbg.generated
*/
@ApiModelProperty(value = "收货人")
@NotEmpty(groups = {CreateEntityGroup.class})
@NotNull(groups = {CreateEntityGroup.class})
private String recipents;
/**
* 收货地址
*
* @mbg.generated
*/
@ApiModelProperty(value = "收货地址")
@NotEmpty(groups = {CreateEntityGroup.class})
@NotNull(groups = {CreateEntityGroup.class})
private String receiveAddress;
/**
* 联系电话
*
* @mbg.generated
*/
@ApiModelProperty(value = "联系电话")
@NotEmpty(groups = {CreateEntityGroup.class})
@NotNull(groups = {CreateEntityGroup.class})
private String receivePhone;
/**
* 申请时间
*
* @mbg.generated
*/
@ApiModelProperty(value = "申请时间")
private LocalDateTime applyTime;
/**
* 审核人
*
* @mbg.generated
*/
@ApiModelProperty(value = "审核人")
private String checkUser;
/**
* 审核人姓名
*
* @mbg.generated
*/
@ApiModelProperty(value = "审核人姓名")
private String checkUserName;
/**
* 审核时间
*
* @mbg.generated
*/
@ApiModelProperty(value = "审核时间")
private LocalDateTime checkTime;
/**
* 审核意见
*
* @mbg.generated
*/
@ApiModelProperty(value = "审核意见")
private String checkSuggestion;
/**
* 创建人
*
* @mbg.generated
*/
@ApiModelProperty(value = "创建人")
private String createdBy;
/**
* 创建时间
*
* @mbg.generated
*/
@ApiModelProperty(value = "创建时间")
private LocalDateTime createdTime;
/**
* 更新人
*
* @mbg.generated
*/
@ApiModelProperty(value = "更新人")
private String updatedBy;
/**
* 更新时间
*
* @mbg.generated
*/
@ApiModelProperty(value = "更新时间")
private LocalDateTime updatedTime;
/**
* 安装单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "安装单号")
private String installOrder;
/**
* 规格型号
*
* @mbg.generated
*/
@ApiModelProperty(value = "规格型号")
@NotEmpty(groups = {CreateEntityGroup.class})
@NotNull(groups = {CreateEntityGroup.class})
private String specification;
/**
* 物流单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "物流单号")
private String logisticOrder;
/**
* 申请时库存
*
* @mbg.generated
*/
@ApiModelProperty(value = "申请时库存")
private String applyInventory;
private static final long serialVersionUID = 1L;
/**
* 申请单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "申请单号")
private String applyOrder;
/**
* 绑定仓库id
*
* @mbg.generated
*/
@ApiModelProperty(value = "绑定仓库id")
@NotEmpty(groups = {CreateEntityGroup.class})
@NotNull(groups = {CreateEntityGroup.class})
private String warehouseId;
}
\ No newline at end of file
package com.starcharge.wios.dao.entity;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class TauxiliarymaterialsCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TauxiliarymaterialsCriteria() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andMaterialCodeIsNull() {
addCriterion("material_code is null");
return (Criteria) this;
}
public Criteria andMaterialCodeIsNotNull() {
addCriterion("material_code is not null");
return (Criteria) this;
}
public Criteria andMaterialCodeEqualTo(String value) {
addCriterion("material_code =", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotEqualTo(String value) {
addCriterion("material_code <>", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeGreaterThan(String value) {
addCriterion("material_code >", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeGreaterThanOrEqualTo(String value) {
addCriterion("material_code >=", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeLessThan(String value) {
addCriterion("material_code <", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeLessThanOrEqualTo(String value) {
addCriterion("material_code <=", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeLike(String value) {
addCriterion("material_code like", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotLike(String value) {
addCriterion("material_code not like", value, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeIn(List<String> values) {
addCriterion("material_code in", values, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotIn(List<String> values) {
addCriterion("material_code not in", values, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeBetween(String value1, String value2) {
addCriterion("material_code between", value1, value2, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialCodeNotBetween(String value1, String value2) {
addCriterion("material_code not between", value1, value2, "materialCode");
return (Criteria) this;
}
public Criteria andMaterialNameIsNull() {
addCriterion("material_name is null");
return (Criteria) this;
}
public Criteria andMaterialNameIsNotNull() {
addCriterion("material_name is not null");
return (Criteria) this;
}
public Criteria andMaterialNameEqualTo(String value) {
addCriterion("material_name =", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotEqualTo(String value) {
addCriterion("material_name <>", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameGreaterThan(String value) {
addCriterion("material_name >", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameGreaterThanOrEqualTo(String value) {
addCriterion("material_name >=", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameLessThan(String value) {
addCriterion("material_name <", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameLessThanOrEqualTo(String value) {
addCriterion("material_name <=", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameLike(String value) {
addCriterion("material_name like", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotLike(String value) {
addCriterion("material_name not like", value, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameIn(List<String> values) {
addCriterion("material_name in", values, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotIn(List<String> values) {
addCriterion("material_name not in", values, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameBetween(String value1, String value2) {
addCriterion("material_name between", value1, value2, "materialName");
return (Criteria) this;
}
public Criteria andMaterialNameNotBetween(String value1, String value2) {
addCriterion("material_name not between", value1, value2, "materialName");
return (Criteria) this;
}
public Criteria andMeasurementUnitIsNull() {
addCriterion("measurement_unit is null");
return (Criteria) this;
}
public Criteria andMeasurementUnitIsNotNull() {
addCriterion("measurement_unit is not null");
return (Criteria) this;
}
public Criteria andMeasurementUnitEqualTo(String value) {
addCriterion("measurement_unit =", value, "measurementUnit");
return (Criteria) this;
}
public Criteria andMeasurementUnitNotEqualTo(String value) {
addCriterion("measurement_unit <>", value, "measurementUnit");
return (Criteria) this;
}
public Criteria andMeasurementUnitGreaterThan(String value) {
addCriterion("measurement_unit >", value, "measurementUnit");
return (Criteria) this;
}
public Criteria andMeasurementUnitGreaterThanOrEqualTo(String value) {
addCriterion("measurement_unit >=", value, "measurementUnit");
return (Criteria) this;
}
public Criteria andMeasurementUnitLessThan(String value) {
addCriterion("measurement_unit <", value, "measurementUnit");
return (Criteria) this;
}
public Criteria andMeasurementUnitLessThanOrEqualTo(String value) {
addCriterion("measurement_unit <=", value, "measurementUnit");
return (Criteria) this;
}
public Criteria andMeasurementUnitLike(String value) {
addCriterion("measurement_unit like", value, "measurementUnit");
return (Criteria) this;
}
public Criteria andMeasurementUnitNotLike(String value) {
addCriterion("measurement_unit not like", value, "measurementUnit");
return (Criteria) this;
}
public Criteria andMeasurementUnitIn(List<String> values) {
addCriterion("measurement_unit in", values, "measurementUnit");
return (Criteria) this;
}
public Criteria andMeasurementUnitNotIn(List<String> values) {
addCriterion("measurement_unit not in", values, "measurementUnit");
return (Criteria) this;
}
public Criteria andMeasurementUnitBetween(String value1, String value2) {
addCriterion("measurement_unit between", value1, value2, "measurementUnit");
return (Criteria) this;
}
public Criteria andMeasurementUnitNotBetween(String value1, String value2) {
addCriterion("measurement_unit not between", value1, value2, "measurementUnit");
return (Criteria) this;
}
public Criteria andApplyQuantityIsNull() {
addCriterion("apply_quantity is null");
return (Criteria) this;
}
public Criteria andApplyQuantityIsNotNull() {
addCriterion("apply_quantity is not null");
return (Criteria) this;
}
public Criteria andApplyQuantityEqualTo(String value) {
addCriterion("apply_quantity =", value, "applyQuantity");
return (Criteria) this;
}
public Criteria andApplyQuantityNotEqualTo(String value) {
addCriterion("apply_quantity <>", value, "applyQuantity");
return (Criteria) this;
}
public Criteria andApplyQuantityGreaterThan(String value) {
addCriterion("apply_quantity >", value, "applyQuantity");
return (Criteria) this;
}
public Criteria andApplyQuantityGreaterThanOrEqualTo(String value) {
addCriterion("apply_quantity >=", value, "applyQuantity");
return (Criteria) this;
}
public Criteria andApplyQuantityLessThan(String value) {
addCriterion("apply_quantity <", value, "applyQuantity");
return (Criteria) this;
}
public Criteria andApplyQuantityLessThanOrEqualTo(String value) {
addCriterion("apply_quantity <=", value, "applyQuantity");
return (Criteria) this;
}
public Criteria andApplyQuantityLike(String value) {
addCriterion("apply_quantity like", value, "applyQuantity");
return (Criteria) this;
}
public Criteria andApplyQuantityNotLike(String value) {
addCriterion("apply_quantity not like", value, "applyQuantity");
return (Criteria) this;
}
public Criteria andApplyQuantityIn(List<String> values) {
addCriterion("apply_quantity in", values, "applyQuantity");
return (Criteria) this;
}
public Criteria andApplyQuantityNotIn(List<String> values) {
addCriterion("apply_quantity not in", values, "applyQuantity");
return (Criteria) this;
}
public Criteria andApplyQuantityBetween(String value1, String value2) {
addCriterion("apply_quantity between", value1, value2, "applyQuantity");
return (Criteria) this;
}
public Criteria andApplyQuantityNotBetween(String value1, String value2) {
addCriterion("apply_quantity not between", value1, value2, "applyQuantity");
return (Criteria) this;
}
public Criteria andApprovedQuantityIsNull() {
addCriterion("approved_quantity is null");
return (Criteria) this;
}
public Criteria andApprovedQuantityIsNotNull() {
addCriterion("approved_quantity is not null");
return (Criteria) this;
}
public Criteria andApprovedQuantityEqualTo(String value) {
addCriterion("approved_quantity =", value, "approvedQuantity");
return (Criteria) this;
}
public Criteria andApprovedQuantityNotEqualTo(String value) {
addCriterion("approved_quantity <>", value, "approvedQuantity");
return (Criteria) this;
}
public Criteria andApprovedQuantityGreaterThan(String value) {
addCriterion("approved_quantity >", value, "approvedQuantity");
return (Criteria) this;
}
public Criteria andApprovedQuantityGreaterThanOrEqualTo(String value) {
addCriterion("approved_quantity >=", value, "approvedQuantity");
return (Criteria) this;
}
public Criteria andApprovedQuantityLessThan(String value) {
addCriterion("approved_quantity <", value, "approvedQuantity");
return (Criteria) this;
}
public Criteria andApprovedQuantityLessThanOrEqualTo(String value) {
addCriterion("approved_quantity <=", value, "approvedQuantity");
return (Criteria) this;
}
public Criteria andApprovedQuantityLike(String value) {
addCriterion("approved_quantity like", value, "approvedQuantity");
return (Criteria) this;
}
public Criteria andApprovedQuantityNotLike(String value) {
addCriterion("approved_quantity not like", value, "approvedQuantity");
return (Criteria) this;
}
public Criteria andApprovedQuantityIn(List<String> values) {
addCriterion("approved_quantity in", values, "approvedQuantity");
return (Criteria) this;
}
public Criteria andApprovedQuantityNotIn(List<String> values) {
addCriterion("approved_quantity not in", values, "approvedQuantity");
return (Criteria) this;
}
public Criteria andApprovedQuantityBetween(String value1, String value2) {
addCriterion("approved_quantity between", value1, value2, "approvedQuantity");
return (Criteria) this;
}
public Criteria andApprovedQuantityNotBetween(String value1, String value2) {
addCriterion("approved_quantity not between", value1, value2, "approvedQuantity");
return (Criteria) this;
}
public Criteria andCurrentySapIsNull() {
addCriterion("currenty_sap is null");
return (Criteria) this;
}
public Criteria andCurrentySapIsNotNull() {
addCriterion("currenty_sap is not null");
return (Criteria) this;
}
public Criteria andCurrentySapEqualTo(String value) {
addCriterion("currenty_sap =", value, "currentySap");
return (Criteria) this;
}
public Criteria andCurrentySapNotEqualTo(String value) {
addCriterion("currenty_sap <>", value, "currentySap");
return (Criteria) this;
}
public Criteria andCurrentySapGreaterThan(String value) {
addCriterion("currenty_sap >", value, "currentySap");
return (Criteria) this;
}
public Criteria andCurrentySapGreaterThanOrEqualTo(String value) {
addCriterion("currenty_sap >=", value, "currentySap");
return (Criteria) this;
}
public Criteria andCurrentySapLessThan(String value) {
addCriterion("currenty_sap <", value, "currentySap");
return (Criteria) this;
}
public Criteria andCurrentySapLessThanOrEqualTo(String value) {
addCriterion("currenty_sap <=", value, "currentySap");
return (Criteria) this;
}
public Criteria andCurrentySapLike(String value) {
addCriterion("currenty_sap like", value, "currentySap");
return (Criteria) this;
}
public Criteria andCurrentySapNotLike(String value) {
addCriterion("currenty_sap not like", value, "currentySap");
return (Criteria) this;
}
public Criteria andCurrentySapIn(List<String> values) {
addCriterion("currenty_sap in", values, "currentySap");
return (Criteria) this;
}
public Criteria andCurrentySapNotIn(List<String> values) {
addCriterion("currenty_sap not in", values, "currentySap");
return (Criteria) this;
}
public Criteria andCurrentySapBetween(String value1, String value2) {
addCriterion("currenty_sap between", value1, value2, "currentySap");
return (Criteria) this;
}
public Criteria andCurrentySapNotBetween(String value1, String value2) {
addCriterion("currenty_sap not between", value1, value2, "currentySap");
return (Criteria) this;
}
public Criteria andMonthAmountSapIsNull() {
addCriterion("month_amount_sap is null");
return (Criteria) this;
}
public Criteria andMonthAmountSapIsNotNull() {
addCriterion("month_amount_sap is not null");
return (Criteria) this;
}
public Criteria andMonthAmountSapEqualTo(String value) {
addCriterion("month_amount_sap =", value, "monthAmountSap");
return (Criteria) this;
}
public Criteria andMonthAmountSapNotEqualTo(String value) {
addCriterion("month_amount_sap <>", value, "monthAmountSap");
return (Criteria) this;
}
public Criteria andMonthAmountSapGreaterThan(String value) {
addCriterion("month_amount_sap >", value, "monthAmountSap");
return (Criteria) this;
}
public Criteria andMonthAmountSapGreaterThanOrEqualTo(String value) {
addCriterion("month_amount_sap >=", value, "monthAmountSap");
return (Criteria) this;
}
public Criteria andMonthAmountSapLessThan(String value) {
addCriterion("month_amount_sap <", value, "monthAmountSap");
return (Criteria) this;
}
public Criteria andMonthAmountSapLessThanOrEqualTo(String value) {
addCriterion("month_amount_sap <=", value, "monthAmountSap");
return (Criteria) this;
}
public Criteria andMonthAmountSapLike(String value) {
addCriterion("month_amount_sap like", value, "monthAmountSap");
return (Criteria) this;
}
public Criteria andMonthAmountSapNotLike(String value) {
addCriterion("month_amount_sap not like", value, "monthAmountSap");
return (Criteria) this;
}
public Criteria andMonthAmountSapIn(List<String> values) {
addCriterion("month_amount_sap in", values, "monthAmountSap");
return (Criteria) this;
}
public Criteria andMonthAmountSapNotIn(List<String> values) {
addCriterion("month_amount_sap not in", values, "monthAmountSap");
return (Criteria) this;
}
public Criteria andMonthAmountSapBetween(String value1, String value2) {
addCriterion("month_amount_sap between", value1, value2, "monthAmountSap");
return (Criteria) this;
}
public Criteria andMonthAmountSapNotBetween(String value1, String value2) {
addCriterion("month_amount_sap not between", value1, value2, "monthAmountSap");
return (Criteria) this;
}
public Criteria andYearAmountIsNull() {
addCriterion("year_amount is null");
return (Criteria) this;
}
public Criteria andYearAmountIsNotNull() {
addCriterion("year_amount is not null");
return (Criteria) this;
}
public Criteria andYearAmountEqualTo(String value) {
addCriterion("year_amount =", value, "yearAmount");
return (Criteria) this;
}
public Criteria andYearAmountNotEqualTo(String value) {
addCriterion("year_amount <>", value, "yearAmount");
return (Criteria) this;
}
public Criteria andYearAmountGreaterThan(String value) {
addCriterion("year_amount >", value, "yearAmount");
return (Criteria) this;
}
public Criteria andYearAmountGreaterThanOrEqualTo(String value) {
addCriterion("year_amount >=", value, "yearAmount");
return (Criteria) this;
}
public Criteria andYearAmountLessThan(String value) {
addCriterion("year_amount <", value, "yearAmount");
return (Criteria) this;
}
public Criteria andYearAmountLessThanOrEqualTo(String value) {
addCriterion("year_amount <=", value, "yearAmount");
return (Criteria) this;
}
public Criteria andYearAmountLike(String value) {
addCriterion("year_amount like", value, "yearAmount");
return (Criteria) this;
}
public Criteria andYearAmountNotLike(String value) {
addCriterion("year_amount not like", value, "yearAmount");
return (Criteria) this;
}
public Criteria andYearAmountIn(List<String> values) {
addCriterion("year_amount in", values, "yearAmount");
return (Criteria) this;
}
public Criteria andYearAmountNotIn(List<String> values) {
addCriterion("year_amount not in", values, "yearAmount");
return (Criteria) this;
}
public Criteria andYearAmountBetween(String value1, String value2) {
addCriterion("year_amount between", value1, value2, "yearAmount");
return (Criteria) this;
}
public Criteria andYearAmountNotBetween(String value1, String value2) {
addCriterion("year_amount not between", value1, value2, "yearAmount");
return (Criteria) this;
}
public Criteria andApplyStatusIsNull() {
addCriterion("apply_status is null");
return (Criteria) this;
}
public Criteria andApplyStatusIsNotNull() {
addCriterion("apply_status is not null");
return (Criteria) this;
}
public Criteria andApplyStatusEqualTo(String value) {
addCriterion("apply_status =", value, "applyStatus");
return (Criteria) this;
}
public Criteria andApplyStatusNotEqualTo(String value) {
addCriterion("apply_status <>", value, "applyStatus");
return (Criteria) this;
}
public Criteria andApplyStatusGreaterThan(String value) {
addCriterion("apply_status >", value, "applyStatus");
return (Criteria) this;
}
public Criteria andApplyStatusGreaterThanOrEqualTo(String value) {
addCriterion("apply_status >=", value, "applyStatus");
return (Criteria) this;
}
public Criteria andApplyStatusLessThan(String value) {
addCriterion("apply_status <", value, "applyStatus");
return (Criteria) this;
}
public Criteria andApplyStatusLessThanOrEqualTo(String value) {
addCriterion("apply_status <=", value, "applyStatus");
return (Criteria) this;
}
public Criteria andApplyStatusLike(String value) {
addCriterion("apply_status like", value, "applyStatus");
return (Criteria) this;
}
public Criteria andApplyStatusNotLike(String value) {
addCriterion("apply_status not like", value, "applyStatus");
return (Criteria) this;
}
public Criteria andApplyStatusIn(List<String> values) {
addCriterion("apply_status in", values, "applyStatus");
return (Criteria) this;
}
public Criteria andApplyStatusNotIn(List<String> values) {
addCriterion("apply_status not in", values, "applyStatus");
return (Criteria) this;
}
public Criteria andApplyStatusBetween(String value1, String value2) {
addCriterion("apply_status between", value1, value2, "applyStatus");
return (Criteria) this;
}
public Criteria andApplyStatusNotBetween(String value1, String value2) {
addCriterion("apply_status not between", value1, value2, "applyStatus");
return (Criteria) this;
}
public Criteria andTeamIsNull() {
addCriterion("team is null");
return (Criteria) this;
}
public Criteria andTeamIsNotNull() {
addCriterion("team is not null");
return (Criteria) this;
}
public Criteria andTeamEqualTo(String value) {
addCriterion("team =", value, "team");
return (Criteria) this;
}
public Criteria andTeamNotEqualTo(String value) {
addCriterion("team <>", value, "team");
return (Criteria) this;
}
public Criteria andTeamGreaterThan(String value) {
addCriterion("team >", value, "team");
return (Criteria) this;
}
public Criteria andTeamGreaterThanOrEqualTo(String value) {
addCriterion("team >=", value, "team");
return (Criteria) this;
}
public Criteria andTeamLessThan(String value) {
addCriterion("team <", value, "team");
return (Criteria) this;
}
public Criteria andTeamLessThanOrEqualTo(String value) {
addCriterion("team <=", value, "team");
return (Criteria) this;
}
public Criteria andTeamLike(String value) {
addCriterion("team like", value, "team");
return (Criteria) this;
}
public Criteria andTeamNotLike(String value) {
addCriterion("team not like", value, "team");
return (Criteria) this;
}
public Criteria andTeamIn(List<String> values) {
addCriterion("team in", values, "team");
return (Criteria) this;
}
public Criteria andTeamNotIn(List<String> values) {
addCriterion("team not in", values, "team");
return (Criteria) this;
}
public Criteria andTeamBetween(String value1, String value2) {
addCriterion("team between", value1, value2, "team");
return (Criteria) this;
}
public Criteria andTeamNotBetween(String value1, String value2) {
addCriterion("team not between", value1, value2, "team");
return (Criteria) this;
}
public Criteria andLogisticStatusIsNull() {
addCriterion("logistic_status is null");
return (Criteria) this;
}
public Criteria andLogisticStatusIsNotNull() {
addCriterion("logistic_status is not null");
return (Criteria) this;
}
public Criteria andLogisticStatusEqualTo(String value) {
addCriterion("logistic_status =", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusNotEqualTo(String value) {
addCriterion("logistic_status <>", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusGreaterThan(String value) {
addCriterion("logistic_status >", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusGreaterThanOrEqualTo(String value) {
addCriterion("logistic_status >=", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusLessThan(String value) {
addCriterion("logistic_status <", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusLessThanOrEqualTo(String value) {
addCriterion("logistic_status <=", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusLike(String value) {
addCriterion("logistic_status like", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusNotLike(String value) {
addCriterion("logistic_status not like", value, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusIn(List<String> values) {
addCriterion("logistic_status in", values, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusNotIn(List<String> values) {
addCriterion("logistic_status not in", values, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusBetween(String value1, String value2) {
addCriterion("logistic_status between", value1, value2, "logisticStatus");
return (Criteria) this;
}
public Criteria andLogisticStatusNotBetween(String value1, String value2) {
addCriterion("logistic_status not between", value1, value2, "logisticStatus");
return (Criteria) this;
}
public Criteria andReceivingStatusIsNull() {
addCriterion("receiving_status is null");
return (Criteria) this;
}
public Criteria andReceivingStatusIsNotNull() {
addCriterion("receiving_status is not null");
return (Criteria) this;
}
public Criteria andReceivingStatusEqualTo(String value) {
addCriterion("receiving_status =", value, "receivingStatus");
return (Criteria) this;
}
public Criteria andReceivingStatusNotEqualTo(String value) {
addCriterion("receiving_status <>", value, "receivingStatus");
return (Criteria) this;
}
public Criteria andReceivingStatusGreaterThan(String value) {
addCriterion("receiving_status >", value, "receivingStatus");
return (Criteria) this;
}
public Criteria andReceivingStatusGreaterThanOrEqualTo(String value) {
addCriterion("receiving_status >=", value, "receivingStatus");
return (Criteria) this;
}
public Criteria andReceivingStatusLessThan(String value) {
addCriterion("receiving_status <", value, "receivingStatus");
return (Criteria) this;
}
public Criteria andReceivingStatusLessThanOrEqualTo(String value) {
addCriterion("receiving_status <=", value, "receivingStatus");
return (Criteria) this;
}
public Criteria andReceivingStatusLike(String value) {
addCriterion("receiving_status like", value, "receivingStatus");
return (Criteria) this;
}
public Criteria andReceivingStatusNotLike(String value) {
addCriterion("receiving_status not like", value, "receivingStatus");
return (Criteria) this;
}
public Criteria andReceivingStatusIn(List<String> values) {
addCriterion("receiving_status in", values, "receivingStatus");
return (Criteria) this;
}
public Criteria andReceivingStatusNotIn(List<String> values) {
addCriterion("receiving_status not in", values, "receivingStatus");
return (Criteria) this;
}
public Criteria andReceivingStatusBetween(String value1, String value2) {
addCriterion("receiving_status between", value1, value2, "receivingStatus");
return (Criteria) this;
}
public Criteria andReceivingStatusNotBetween(String value1, String value2) {
addCriterion("receiving_status not between", value1, value2, "receivingStatus");
return (Criteria) this;
}
public Criteria andRecipentsIsNull() {
addCriterion("recipents is null");
return (Criteria) this;
}
public Criteria andRecipentsIsNotNull() {
addCriterion("recipents is not null");
return (Criteria) this;
}
public Criteria andRecipentsEqualTo(String value) {
addCriterion("recipents =", value, "recipents");
return (Criteria) this;
}
public Criteria andRecipentsNotEqualTo(String value) {
addCriterion("recipents <>", value, "recipents");
return (Criteria) this;
}
public Criteria andRecipentsGreaterThan(String value) {
addCriterion("recipents >", value, "recipents");
return (Criteria) this;
}
public Criteria andRecipentsGreaterThanOrEqualTo(String value) {
addCriterion("recipents >=", value, "recipents");
return (Criteria) this;
}
public Criteria andRecipentsLessThan(String value) {
addCriterion("recipents <", value, "recipents");
return (Criteria) this;
}
public Criteria andRecipentsLessThanOrEqualTo(String value) {
addCriterion("recipents <=", value, "recipents");
return (Criteria) this;
}
public Criteria andRecipentsLike(String value) {
addCriterion("recipents like", value, "recipents");
return (Criteria) this;
}
public Criteria andRecipentsNotLike(String value) {
addCriterion("recipents not like", value, "recipents");
return (Criteria) this;
}
public Criteria andRecipentsIn(List<String> values) {
addCriterion("recipents in", values, "recipents");
return (Criteria) this;
}
public Criteria andRecipentsNotIn(List<String> values) {
addCriterion("recipents not in", values, "recipents");
return (Criteria) this;
}
public Criteria andRecipentsBetween(String value1, String value2) {
addCriterion("recipents between", value1, value2, "recipents");
return (Criteria) this;
}
public Criteria andRecipentsNotBetween(String value1, String value2) {
addCriterion("recipents not between", value1, value2, "recipents");
return (Criteria) this;
}
public Criteria andReceiveAddressIsNull() {
addCriterion("receive_address is null");
return (Criteria) this;
}
public Criteria andReceiveAddressIsNotNull() {
addCriterion("receive_address is not null");
return (Criteria) this;
}
public Criteria andReceiveAddressEqualTo(String value) {
addCriterion("receive_address =", value, "receiveAddress");
return (Criteria) this;
}
public Criteria andReceiveAddressNotEqualTo(String value) {
addCriterion("receive_address <>", value, "receiveAddress");
return (Criteria) this;
}
public Criteria andReceiveAddressGreaterThan(String value) {
addCriterion("receive_address >", value, "receiveAddress");
return (Criteria) this;
}
public Criteria andReceiveAddressGreaterThanOrEqualTo(String value) {
addCriterion("receive_address >=", value, "receiveAddress");
return (Criteria) this;
}
public Criteria andReceiveAddressLessThan(String value) {
addCriterion("receive_address <", value, "receiveAddress");
return (Criteria) this;
}
public Criteria andReceiveAddressLessThanOrEqualTo(String value) {
addCriterion("receive_address <=", value, "receiveAddress");
return (Criteria) this;
}
public Criteria andReceiveAddressLike(String value) {
addCriterion("receive_address like", value, "receiveAddress");
return (Criteria) this;
}
public Criteria andReceiveAddressNotLike(String value) {
addCriterion("receive_address not like", value, "receiveAddress");
return (Criteria) this;
}
public Criteria andReceiveAddressIn(List<String> values) {
addCriterion("receive_address in", values, "receiveAddress");
return (Criteria) this;
}
public Criteria andReceiveAddressNotIn(List<String> values) {
addCriterion("receive_address not in", values, "receiveAddress");
return (Criteria) this;
}
public Criteria andReceiveAddressBetween(String value1, String value2) {
addCriterion("receive_address between", value1, value2, "receiveAddress");
return (Criteria) this;
}
public Criteria andReceiveAddressNotBetween(String value1, String value2) {
addCriterion("receive_address not between", value1, value2, "receiveAddress");
return (Criteria) this;
}
public Criteria andReceivePhoneIsNull() {
addCriterion("receive_phone is null");
return (Criteria) this;
}
public Criteria andReceivePhoneIsNotNull() {
addCriterion("receive_phone is not null");
return (Criteria) this;
}
public Criteria andReceivePhoneEqualTo(String value) {
addCriterion("receive_phone =", value, "receivePhone");
return (Criteria) this;
}
public Criteria andReceivePhoneNotEqualTo(String value) {
addCriterion("receive_phone <>", value, "receivePhone");
return (Criteria) this;
}
public Criteria andReceivePhoneGreaterThan(String value) {
addCriterion("receive_phone >", value, "receivePhone");
return (Criteria) this;
}
public Criteria andReceivePhoneGreaterThanOrEqualTo(String value) {
addCriterion("receive_phone >=", value, "receivePhone");
return (Criteria) this;
}
public Criteria andReceivePhoneLessThan(String value) {
addCriterion("receive_phone <", value, "receivePhone");
return (Criteria) this;
}
public Criteria andReceivePhoneLessThanOrEqualTo(String value) {
addCriterion("receive_phone <=", value, "receivePhone");
return (Criteria) this;
}
public Criteria andReceivePhoneLike(String value) {
addCriterion("receive_phone like", value, "receivePhone");
return (Criteria) this;
}
public Criteria andReceivePhoneNotLike(String value) {
addCriterion("receive_phone not like", value, "receivePhone");
return (Criteria) this;
}
public Criteria andReceivePhoneIn(List<String> values) {
addCriterion("receive_phone in", values, "receivePhone");
return (Criteria) this;
}
public Criteria andReceivePhoneNotIn(List<String> values) {
addCriterion("receive_phone not in", values, "receivePhone");
return (Criteria) this;
}
public Criteria andReceivePhoneBetween(String value1, String value2) {
addCriterion("receive_phone between", value1, value2, "receivePhone");
return (Criteria) this;
}
public Criteria andReceivePhoneNotBetween(String value1, String value2) {
addCriterion("receive_phone not between", value1, value2, "receivePhone");
return (Criteria) this;
}
public Criteria andApplyTimeIsNull() {
addCriterion("apply_time is null");
return (Criteria) this;
}
public Criteria andApplyTimeIsNotNull() {
addCriterion("apply_time is not null");
return (Criteria) this;
}
public Criteria andApplyTimeEqualTo(LocalDateTime value) {
addCriterion("apply_time =", value, "applyTime");
return (Criteria) this;
}
public Criteria andApplyTimeNotEqualTo(LocalDateTime value) {
addCriterion("apply_time <>", value, "applyTime");
return (Criteria) this;
}
public Criteria andApplyTimeGreaterThan(LocalDateTime value) {
addCriterion("apply_time >", value, "applyTime");
return (Criteria) this;
}
public Criteria andApplyTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("apply_time >=", value, "applyTime");
return (Criteria) this;
}
public Criteria andApplyTimeLessThan(LocalDateTime value) {
addCriterion("apply_time <", value, "applyTime");
return (Criteria) this;
}
public Criteria andApplyTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("apply_time <=", value, "applyTime");
return (Criteria) this;
}
public Criteria andApplyTimeIn(List<LocalDateTime> values) {
addCriterion("apply_time in", values, "applyTime");
return (Criteria) this;
}
public Criteria andApplyTimeNotIn(List<LocalDateTime> values) {
addCriterion("apply_time not in", values, "applyTime");
return (Criteria) this;
}
public Criteria andApplyTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("apply_time between", value1, value2, "applyTime");
return (Criteria) this;
}
public Criteria andApplyTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("apply_time not between", value1, value2, "applyTime");
return (Criteria) this;
}
public Criteria andCheckUserIsNull() {
addCriterion("check_user is null");
return (Criteria) this;
}
public Criteria andCheckUserIsNotNull() {
addCriterion("check_user is not null");
return (Criteria) this;
}
public Criteria andCheckUserEqualTo(String value) {
addCriterion("check_user =", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserNotEqualTo(String value) {
addCriterion("check_user <>", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserGreaterThan(String value) {
addCriterion("check_user >", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserGreaterThanOrEqualTo(String value) {
addCriterion("check_user >=", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserLessThan(String value) {
addCriterion("check_user <", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserLessThanOrEqualTo(String value) {
addCriterion("check_user <=", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserLike(String value) {
addCriterion("check_user like", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserNotLike(String value) {
addCriterion("check_user not like", value, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserIn(List<String> values) {
addCriterion("check_user in", values, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserNotIn(List<String> values) {
addCriterion("check_user not in", values, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserBetween(String value1, String value2) {
addCriterion("check_user between", value1, value2, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserNotBetween(String value1, String value2) {
addCriterion("check_user not between", value1, value2, "checkUser");
return (Criteria) this;
}
public Criteria andCheckUserNameIsNull() {
addCriterion("check_user_name is null");
return (Criteria) this;
}
public Criteria andCheckUserNameIsNotNull() {
addCriterion("check_user_name is not null");
return (Criteria) this;
}
public Criteria andCheckUserNameEqualTo(String value) {
addCriterion("check_user_name =", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameNotEqualTo(String value) {
addCriterion("check_user_name <>", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameGreaterThan(String value) {
addCriterion("check_user_name >", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameGreaterThanOrEqualTo(String value) {
addCriterion("check_user_name >=", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameLessThan(String value) {
addCriterion("check_user_name <", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameLessThanOrEqualTo(String value) {
addCriterion("check_user_name <=", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameLike(String value) {
addCriterion("check_user_name like", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameNotLike(String value) {
addCriterion("check_user_name not like", value, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameIn(List<String> values) {
addCriterion("check_user_name in", values, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameNotIn(List<String> values) {
addCriterion("check_user_name not in", values, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameBetween(String value1, String value2) {
addCriterion("check_user_name between", value1, value2, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckUserNameNotBetween(String value1, String value2) {
addCriterion("check_user_name not between", value1, value2, "checkUserName");
return (Criteria) this;
}
public Criteria andCheckTimeIsNull() {
addCriterion("check_time is null");
return (Criteria) this;
}
public Criteria andCheckTimeIsNotNull() {
addCriterion("check_time is not null");
return (Criteria) this;
}
public Criteria andCheckTimeEqualTo(LocalDateTime value) {
addCriterion("check_time =", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotEqualTo(LocalDateTime value) {
addCriterion("check_time <>", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeGreaterThan(LocalDateTime value) {
addCriterion("check_time >", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("check_time >=", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLessThan(LocalDateTime value) {
addCriterion("check_time <", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("check_time <=", value, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeIn(List<LocalDateTime> values) {
addCriterion("check_time in", values, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotIn(List<LocalDateTime> values) {
addCriterion("check_time not in", values, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("check_time between", value1, value2, "checkTime");
return (Criteria) this;
}
public Criteria andCheckTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("check_time not between", value1, value2, "checkTime");
return (Criteria) this;
}
public Criteria andCheckSuggestionIsNull() {
addCriterion("check_suggestion is null");
return (Criteria) this;
}
public Criteria andCheckSuggestionIsNotNull() {
addCriterion("check_suggestion is not null");
return (Criteria) this;
}
public Criteria andCheckSuggestionEqualTo(String value) {
addCriterion("check_suggestion =", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionNotEqualTo(String value) {
addCriterion("check_suggestion <>", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionGreaterThan(String value) {
addCriterion("check_suggestion >", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionGreaterThanOrEqualTo(String value) {
addCriterion("check_suggestion >=", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionLessThan(String value) {
addCriterion("check_suggestion <", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionLessThanOrEqualTo(String value) {
addCriterion("check_suggestion <=", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionLike(String value) {
addCriterion("check_suggestion like", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionNotLike(String value) {
addCriterion("check_suggestion not like", value, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionIn(List<String> values) {
addCriterion("check_suggestion in", values, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionNotIn(List<String> values) {
addCriterion("check_suggestion not in", values, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionBetween(String value1, String value2) {
addCriterion("check_suggestion between", value1, value2, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCheckSuggestionNotBetween(String value1, String value2) {
addCriterion("check_suggestion not between", value1, value2, "checkSuggestion");
return (Criteria) this;
}
public Criteria andCreatedByIsNull() {
addCriterion("CREATED_BY is null");
return (Criteria) this;
}
public Criteria andCreatedByIsNotNull() {
addCriterion("CREATED_BY is not null");
return (Criteria) this;
}
public Criteria andCreatedByEqualTo(String value) {
addCriterion("CREATED_BY =", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotEqualTo(String value) {
addCriterion("CREATED_BY <>", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByGreaterThan(String value) {
addCriterion("CREATED_BY >", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByGreaterThanOrEqualTo(String value) {
addCriterion("CREATED_BY >=", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByLessThan(String value) {
addCriterion("CREATED_BY <", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByLessThanOrEqualTo(String value) {
addCriterion("CREATED_BY <=", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByLike(String value) {
addCriterion("CREATED_BY like", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotLike(String value) {
addCriterion("CREATED_BY not like", value, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByIn(List<String> values) {
addCriterion("CREATED_BY in", values, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotIn(List<String> values) {
addCriterion("CREATED_BY not in", values, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByBetween(String value1, String value2) {
addCriterion("CREATED_BY between", value1, value2, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedByNotBetween(String value1, String value2) {
addCriterion("CREATED_BY not between", value1, value2, "createdBy");
return (Criteria) this;
}
public Criteria andCreatedTimeIsNull() {
addCriterion("CREATED_TIME is null");
return (Criteria) this;
}
public Criteria andCreatedTimeIsNotNull() {
addCriterion("CREATED_TIME is not null");
return (Criteria) this;
}
public Criteria andCreatedTimeEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME =", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeNotEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME <>", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeGreaterThan(LocalDateTime value) {
addCriterion("CREATED_TIME >", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME >=", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeLessThan(LocalDateTime value) {
addCriterion("CREATED_TIME <", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("CREATED_TIME <=", value, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeIn(List<LocalDateTime> values) {
addCriterion("CREATED_TIME in", values, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeNotIn(List<LocalDateTime> values) {
addCriterion("CREATED_TIME not in", values, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("CREATED_TIME between", value1, value2, "createdTime");
return (Criteria) this;
}
public Criteria andCreatedTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("CREATED_TIME not between", value1, value2, "createdTime");
return (Criteria) this;
}
public Criteria andUpdatedByIsNull() {
addCriterion("UPDATED_BY is null");
return (Criteria) this;
}
public Criteria andUpdatedByIsNotNull() {
addCriterion("UPDATED_BY is not null");
return (Criteria) this;
}
public Criteria andUpdatedByEqualTo(String value) {
addCriterion("UPDATED_BY =", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotEqualTo(String value) {
addCriterion("UPDATED_BY <>", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByGreaterThan(String value) {
addCriterion("UPDATED_BY >", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByGreaterThanOrEqualTo(String value) {
addCriterion("UPDATED_BY >=", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByLessThan(String value) {
addCriterion("UPDATED_BY <", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByLessThanOrEqualTo(String value) {
addCriterion("UPDATED_BY <=", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByLike(String value) {
addCriterion("UPDATED_BY like", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotLike(String value) {
addCriterion("UPDATED_BY not like", value, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByIn(List<String> values) {
addCriterion("UPDATED_BY in", values, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotIn(List<String> values) {
addCriterion("UPDATED_BY not in", values, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByBetween(String value1, String value2) {
addCriterion("UPDATED_BY between", value1, value2, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedByNotBetween(String value1, String value2) {
addCriterion("UPDATED_BY not between", value1, value2, "updatedBy");
return (Criteria) this;
}
public Criteria andUpdatedTimeIsNull() {
addCriterion("UPDATED_TIME is null");
return (Criteria) this;
}
public Criteria andUpdatedTimeIsNotNull() {
addCriterion("UPDATED_TIME is not null");
return (Criteria) this;
}
public Criteria andUpdatedTimeEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME =", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeNotEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME <>", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeGreaterThan(LocalDateTime value) {
addCriterion("UPDATED_TIME >", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME >=", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeLessThan(LocalDateTime value) {
addCriterion("UPDATED_TIME <", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("UPDATED_TIME <=", value, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeIn(List<LocalDateTime> values) {
addCriterion("UPDATED_TIME in", values, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeNotIn(List<LocalDateTime> values) {
addCriterion("UPDATED_TIME not in", values, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("UPDATED_TIME between", value1, value2, "updatedTime");
return (Criteria) this;
}
public Criteria andUpdatedTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("UPDATED_TIME not between", value1, value2, "updatedTime");
return (Criteria) this;
}
public Criteria andInstallOrderIsNull() {
addCriterion("install_order is null");
return (Criteria) this;
}
public Criteria andInstallOrderIsNotNull() {
addCriterion("install_order is not null");
return (Criteria) this;
}
public Criteria andInstallOrderEqualTo(String value) {
addCriterion("install_order =", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotEqualTo(String value) {
addCriterion("install_order <>", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderGreaterThan(String value) {
addCriterion("install_order >", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderGreaterThanOrEqualTo(String value) {
addCriterion("install_order >=", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderLessThan(String value) {
addCriterion("install_order <", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderLessThanOrEqualTo(String value) {
addCriterion("install_order <=", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderLike(String value) {
addCriterion("install_order like", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotLike(String value) {
addCriterion("install_order not like", value, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderIn(List<String> values) {
addCriterion("install_order in", values, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotIn(List<String> values) {
addCriterion("install_order not in", values, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderBetween(String value1, String value2) {
addCriterion("install_order between", value1, value2, "installOrder");
return (Criteria) this;
}
public Criteria andInstallOrderNotBetween(String value1, String value2) {
addCriterion("install_order not between", value1, value2, "installOrder");
return (Criteria) this;
}
public Criteria andSpecificationIsNull() {
addCriterion("specification is null");
return (Criteria) this;
}
public Criteria andSpecificationIsNotNull() {
addCriterion("specification is not null");
return (Criteria) this;
}
public Criteria andSpecificationEqualTo(String value) {
addCriterion("specification =", value, "specification");
return (Criteria) this;
}
public Criteria andSpecificationNotEqualTo(String value) {
addCriterion("specification <>", value, "specification");
return (Criteria) this;
}
public Criteria andSpecificationGreaterThan(String value) {
addCriterion("specification >", value, "specification");
return (Criteria) this;
}
public Criteria andSpecificationGreaterThanOrEqualTo(String value) {
addCriterion("specification >=", value, "specification");
return (Criteria) this;
}
public Criteria andSpecificationLessThan(String value) {
addCriterion("specification <", value, "specification");
return (Criteria) this;
}
public Criteria andSpecificationLessThanOrEqualTo(String value) {
addCriterion("specification <=", value, "specification");
return (Criteria) this;
}
public Criteria andSpecificationLike(String value) {
addCriterion("specification like", value, "specification");
return (Criteria) this;
}
public Criteria andSpecificationNotLike(String value) {
addCriterion("specification not like", value, "specification");
return (Criteria) this;
}
public Criteria andSpecificationIn(List<String> values) {
addCriterion("specification in", values, "specification");
return (Criteria) this;
}
public Criteria andSpecificationNotIn(List<String> values) {
addCriterion("specification not in", values, "specification");
return (Criteria) this;
}
public Criteria andSpecificationBetween(String value1, String value2) {
addCriterion("specification between", value1, value2, "specification");
return (Criteria) this;
}
public Criteria andSpecificationNotBetween(String value1, String value2) {
addCriterion("specification not between", value1, value2, "specification");
return (Criteria) this;
}
public Criteria andLogisticOrderIsNull() {
addCriterion("logistic_order is null");
return (Criteria) this;
}
public Criteria andLogisticOrderIsNotNull() {
addCriterion("logistic_order is not null");
return (Criteria) this;
}
public Criteria andLogisticOrderEqualTo(String value) {
addCriterion("logistic_order =", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderNotEqualTo(String value) {
addCriterion("logistic_order <>", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderGreaterThan(String value) {
addCriterion("logistic_order >", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderGreaterThanOrEqualTo(String value) {
addCriterion("logistic_order >=", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderLessThan(String value) {
addCriterion("logistic_order <", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderLessThanOrEqualTo(String value) {
addCriterion("logistic_order <=", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderLike(String value) {
addCriterion("logistic_order like", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderNotLike(String value) {
addCriterion("logistic_order not like", value, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderIn(List<String> values) {
addCriterion("logistic_order in", values, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderNotIn(List<String> values) {
addCriterion("logistic_order not in", values, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderBetween(String value1, String value2) {
addCriterion("logistic_order between", value1, value2, "logisticOrder");
return (Criteria) this;
}
public Criteria andLogisticOrderNotBetween(String value1, String value2) {
addCriterion("logistic_order not between", value1, value2, "logisticOrder");
return (Criteria) this;
}
public Criteria andApplyInventoryIsNull() {
addCriterion("apply_inventory is null");
return (Criteria) this;
}
public Criteria andApplyInventoryIsNotNull() {
addCriterion("apply_inventory is not null");
return (Criteria) this;
}
public Criteria andApplyInventoryEqualTo(String value) {
addCriterion("apply_inventory =", value, "applyInventory");
return (Criteria) this;
}
public Criteria andApplyInventoryNotEqualTo(String value) {
addCriterion("apply_inventory <>", value, "applyInventory");
return (Criteria) this;
}
public Criteria andApplyInventoryGreaterThan(String value) {
addCriterion("apply_inventory >", value, "applyInventory");
return (Criteria) this;
}
public Criteria andApplyInventoryGreaterThanOrEqualTo(String value) {
addCriterion("apply_inventory >=", value, "applyInventory");
return (Criteria) this;
}
public Criteria andApplyInventoryLessThan(String value) {
addCriterion("apply_inventory <", value, "applyInventory");
return (Criteria) this;
}
public Criteria andApplyInventoryLessThanOrEqualTo(String value) {
addCriterion("apply_inventory <=", value, "applyInventory");
return (Criteria) this;
}
public Criteria andApplyInventoryLike(String value) {
addCriterion("apply_inventory like", value, "applyInventory");
return (Criteria) this;
}
public Criteria andApplyInventoryNotLike(String value) {
addCriterion("apply_inventory not like", value, "applyInventory");
return (Criteria) this;
}
public Criteria andApplyInventoryIn(List<String> values) {
addCriterion("apply_inventory in", values, "applyInventory");
return (Criteria) this;
}
public Criteria andApplyInventoryNotIn(List<String> values) {
addCriterion("apply_inventory not in", values, "applyInventory");
return (Criteria) this;
}
public Criteria andApplyInventoryBetween(String value1, String value2) {
addCriterion("apply_inventory between", value1, value2, "applyInventory");
return (Criteria) this;
}
public Criteria andApplyInventoryNotBetween(String value1, String value2) {
addCriterion("apply_inventory not between", value1, value2, "applyInventory");
return (Criteria) this;
}
public Criteria andApplyOrderIsNull() {
addCriterion("apply_order is null");
return (Criteria) this;
}
public Criteria andApplyOrderIsNotNull() {
addCriterion("apply_order is not null");
return (Criteria) this;
}
public Criteria andApplyOrderEqualTo(String value) {
addCriterion("apply_order =", value, "applyOrder");
return (Criteria) this;
}
public Criteria andApplyOrderNotEqualTo(String value) {
addCriterion("apply_order <>", value, "applyOrder");
return (Criteria) this;
}
public Criteria andApplyOrderGreaterThan(String value) {
addCriterion("apply_order >", value, "applyOrder");
return (Criteria) this;
}
public Criteria andApplyOrderGreaterThanOrEqualTo(String value) {
addCriterion("apply_order >=", value, "applyOrder");
return (Criteria) this;
}
public Criteria andApplyOrderLessThan(String value) {
addCriterion("apply_order <", value, "applyOrder");
return (Criteria) this;
}
public Criteria andApplyOrderLessThanOrEqualTo(String value) {
addCriterion("apply_order <=", value, "applyOrder");
return (Criteria) this;
}
public Criteria andApplyOrderLike(String value) {
addCriterion("apply_order like", value, "applyOrder");
return (Criteria) this;
}
public Criteria andApplyOrderNotLike(String value) {
addCriterion("apply_order not like", value, "applyOrder");
return (Criteria) this;
}
public Criteria andApplyOrderIn(List<String> values) {
addCriterion("apply_order in", values, "applyOrder");
return (Criteria) this;
}
public Criteria andApplyOrderNotIn(List<String> values) {
addCriterion("apply_order not in", values, "applyOrder");
return (Criteria) this;
}
public Criteria andApplyOrderBetween(String value1, String value2) {
addCriterion("apply_order between", value1, value2, "applyOrder");
return (Criteria) this;
}
public Criteria andApplyOrderNotBetween(String value1, String value2) {
addCriterion("apply_order not between", value1, value2, "applyOrder");
return (Criteria) this;
}
public Criteria andWarehouseIdIsNull() {
addCriterion("warehouse_id is null");
return (Criteria) this;
}
public Criteria andWarehouseIdIsNotNull() {
addCriterion("warehouse_id is not null");
return (Criteria) this;
}
public Criteria andWarehouseIdEqualTo(String value) {
addCriterion("warehouse_id =", value, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdNotEqualTo(String value) {
addCriterion("warehouse_id <>", value, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdGreaterThan(String value) {
addCriterion("warehouse_id >", value, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdGreaterThanOrEqualTo(String value) {
addCriterion("warehouse_id >=", value, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdLessThan(String value) {
addCriterion("warehouse_id <", value, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdLessThanOrEqualTo(String value) {
addCriterion("warehouse_id <=", value, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdLike(String value) {
addCriterion("warehouse_id like", value, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdNotLike(String value) {
addCriterion("warehouse_id not like", value, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdIn(List<String> values) {
addCriterion("warehouse_id in", values, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdNotIn(List<String> values) {
addCriterion("warehouse_id not in", values, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdBetween(String value1, String value2) {
addCriterion("warehouse_id between", value1, value2, "warehouseId");
return (Criteria) this;
}
public Criteria andWarehouseIdNotBetween(String value1, String value2) {
addCriterion("warehouse_id not between", value1, value2, "warehouseId");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
package com.starcharge.wios.dao.entity;
import lombok.Data;
import java.util.Date;
/**
* <p>
* 墙盒申请
* <p>
*
* @author <a href="mail to: ning.chai@foxmail.com" rel="nofollow">chaining</a>
*/
@Data
public class WallboxApply {
/** 自增id */
private Long id;
/** 安装订单号 */
private String orderId;
/** 安装服务商id */
private Long supplierId;
/** 申请团队名称 */
private String supplierTeam;
/** 墙盒设备型号(对应物料id) */
private String wallboxItemId;
/** 墙盒品牌 */
private String wallboxModel;
/** 物料类型 */
private String materialType;
/** 物流单号 */
private String trackingNumber;
/** 物流状态0未发货,1已发货 */
private String trackingStatus;
/** 安装状态 */
private String installStatus;
/** 区域id */
private String regionId;
/** 地址 */
private String address;
/** 车企安装单号 */
private String outOrderId;
/** 是否紧急:0:否,1:是 */
private Integer ifEmergency;
/** 是否超时:0:未超时,1:已超时 */
private Long ifTimeout;
/** 审核人员 */
private String checkAccount;
/** 申请状态:1:已申请,2:已通过,3:已驳回,4:已关闭 */
private Long checkStatus;
/** 审核备注 */
private String checkRemarks;
/** 审核时间 */
private Date checkTime;
/** 预约安装日期 */
private Date installReserveTime;
/** 安装进度 */
private Long installProcess;
/** 创建人 */
private String createAccount;
/** 创建时间 */
private Date createdTime;
/** 更新人 */
private String modifyAccount;
/** 更新时间 */
private Date modifyTime;
}
package com.starcharge.wios.dao.mappers;
import com.starcharge.wios.dao.entity.Delivery;
import com.starcharge.wios.dao.entity.DeliveryCriteria;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface DeliveryMapper {
long countByExample(DeliveryCriteria example);
int deleteByExample(DeliveryCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(Delivery record);
int insertSelective(Delivery record);
List<Delivery> selectByExample(DeliveryCriteria example);
Delivery selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") Delivery record, @Param("example") DeliveryCriteria example);
int updateByExample(@Param("record") Delivery record, @Param("example") DeliveryCriteria example);
int updateByPrimaryKeySelective(Delivery record);
int updateByPrimaryKey(Delivery record);
List<Delivery> selectDeliveryList(Delivery delivery);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.starcharge.wios.dao.mappers.DeliveryMapper">
<resultMap id="BaseResultMap" type="com.starcharge.wios.dao.entity.Delivery">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="delivery_order" jdbcType="VARCHAR" property="deliveryOrder" />
<result column="install_order" jdbcType="VARCHAR" property="installOrder" />
<result column="product_batch" jdbcType="VARCHAR" property="productBatch" />
<result column="quantity" jdbcType="INTEGER" property="quantity" />
<result column="material_category" jdbcType="VARCHAR" property="materialCategory" />
<result column="material_code" jdbcType="VARCHAR" property="materialCode" />
<result column="material_name" jdbcType="VARCHAR" property="materialName" />
<result column="material_company" jdbcType="VARCHAR" property="materialCompany" />
<result column="logistic_order" jdbcType="VARCHAR" property="logisticOrder" />
<result column="logistic_company" jdbcType="VARCHAR" property="logisticCompany" />
<result column="logistic_status" jdbcType="VARCHAR" property="logisticStatus" />
<result column="team" jdbcType="VARCHAR" property="team" />
<result column="isproduct" jdbcType="INTEGER" property="isproduct" />
<result column="CREATED_BY" jdbcType="VARCHAR" property="createdBy" />
<result column="CREATED_TIME" jdbcType="TIMESTAMP" property="createdTime" />
<result column="UPDATED_BY" jdbcType="VARCHAR" property="updatedBy" />
<result column="UPDATED_TIME" jdbcType="TIMESTAMP" property="updatedTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<select id="selectDeliveryList" parameterType="com.starcharge.wios.dao.entity.Delivery" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from t_delivery
<where>
<if test="deliveryOrder != null and deliveryOrder != ''"> and delivery_order = #{deliveryOrder}</if>
<if test="installOrder != null and installOrder != ''"> and install_order = #{installOrder}</if>
<if test="productBatch != null and productBatch != ''"> and product_batch = #{productBatch}</if>
<if test="quantity != null "> and quantity = #{quantity}</if>
<if test="materialCategory != null and materialCategory != ''"> and material_category = #{materialCategory}</if>
<if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if>
<if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if>
<if test="materialCompany != null and materialCompany != ''"> and material_company = #{materialCompany}</if>
<if test="logisticOrder != null and logisticOrder != ''"> and logistic_order = #{logisticOrder}</if>
<if test="logisticCompany != null and logisticCompany != ''"> and logistic_company = #{logisticCompany}</if>
<if test="logisticStatus != null and logisticStatus != ''"> and logistic_status = #{logisticStatus}</if>
<if test="team != null and team != ''"> and team = #{team}</if>
<if test="isproduct != null "> and isproduct = #{isproduct}</if>
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if>
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if>
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if>
<if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</if>
</where>
</select>
<sql id="Base_Column_List">
id, delivery_order, install_order, product_batch, quantity, material_category, material_code,
material_name, material_company, logistic_order, logistic_company, logistic_status,
team, isproduct, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME
</sql>
<select id="selectByExample" parameterType="com.starcharge.wios.dao.entity.DeliveryCriteria" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_delivery
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_delivery
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from t_delivery
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.starcharge.wios.dao.entity.DeliveryCriteria">
delete from t_delivery
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.starcharge.wios.dao.entity.Delivery">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into t_delivery (delivery_order, install_order, product_batch,
quantity, material_category, material_code,
material_name, material_company, logistic_order,
logistic_company, logistic_status, team,
isproduct, CREATED_BY, CREATED_TIME,
UPDATED_BY, UPDATED_TIME)
values (#{deliveryOrder,jdbcType=VARCHAR}, #{installOrder,jdbcType=VARCHAR}, #{productBatch,jdbcType=VARCHAR},
#{quantity,jdbcType=INTEGER}, #{materialCategory,jdbcType=VARCHAR}, #{materialCode,jdbcType=VARCHAR},
#{materialName,jdbcType=VARCHAR}, #{materialCompany,jdbcType=VARCHAR}, #{logisticOrder,jdbcType=VARCHAR},
#{logisticCompany,jdbcType=VARCHAR}, #{logisticStatus,jdbcType=VARCHAR}, #{team,jdbcType=VARCHAR},
#{isproduct,jdbcType=INTEGER}, #{createdBy,jdbcType=VARCHAR}, #{createdTime,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=VARCHAR}, #{updatedTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.starcharge.wios.dao.entity.Delivery">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into t_delivery
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deliveryOrder != null">
delivery_order,
</if>
<if test="installOrder != null">
install_order,
</if>
<if test="productBatch != null">
product_batch,
</if>
<if test="quantity != null">
quantity,
</if>
<if test="materialCategory != null">
material_category,
</if>
<if test="materialCode != null">
material_code,
</if>
<if test="materialName != null">
material_name,
</if>
<if test="materialCompany != null">
material_company,
</if>
<if test="logisticOrder != null">
logistic_order,
</if>
<if test="logisticCompany != null">
logistic_company,
</if>
<if test="logisticStatus != null">
logistic_status,
</if>
<if test="team != null">
team,
</if>
<if test="isproduct != null">
isproduct,
</if>
<if test="createdBy != null">
CREATED_BY,
</if>
<if test="createdTime != null">
CREATED_TIME,
</if>
<if test="updatedBy != null">
UPDATED_BY,
</if>
<if test="updatedTime != null">
UPDATED_TIME,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deliveryOrder != null">
#{deliveryOrder,jdbcType=VARCHAR},
</if>
<if test="installOrder != null">
#{installOrder,jdbcType=VARCHAR},
</if>
<if test="productBatch != null">
#{productBatch,jdbcType=VARCHAR},
</if>
<if test="quantity != null">
#{quantity,jdbcType=INTEGER},
</if>
<if test="materialCategory != null">
#{materialCategory,jdbcType=VARCHAR},
</if>
<if test="materialCode != null">
#{materialCode,jdbcType=VARCHAR},
</if>
<if test="materialName != null">
#{materialName,jdbcType=VARCHAR},
</if>
<if test="materialCompany != null">
#{materialCompany,jdbcType=VARCHAR},
</if>
<if test="logisticOrder != null">
#{logisticOrder,jdbcType=VARCHAR},
</if>
<if test="logisticCompany != null">
#{logisticCompany,jdbcType=VARCHAR},
</if>
<if test="logisticStatus != null">
#{logisticStatus,jdbcType=VARCHAR},
</if>
<if test="team != null">
#{team,jdbcType=VARCHAR},
</if>
<if test="isproduct != null">
#{isproduct,jdbcType=INTEGER},
</if>
<if test="createdBy != null">
#{createdBy,jdbcType=VARCHAR},
</if>
<if test="createdTime != null">
#{createdTime,jdbcType=TIMESTAMP},
</if>
<if test="updatedBy != null">
#{updatedBy,jdbcType=VARCHAR},
</if>
<if test="updatedTime != null">
#{updatedTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.starcharge.wios.dao.entity.DeliveryCriteria" resultType="java.lang.Long">
select count(*) from t_delivery
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_delivery
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.deliveryOrder != null">
delivery_order = #{record.deliveryOrder,jdbcType=VARCHAR},
</if>
<if test="record.installOrder != null">
install_order = #{record.installOrder,jdbcType=VARCHAR},
</if>
<if test="record.productBatch != null">
product_batch = #{record.productBatch,jdbcType=VARCHAR},
</if>
<if test="record.quantity != null">
quantity = #{record.quantity,jdbcType=INTEGER},
</if>
<if test="record.materialCategory != null">
material_category = #{record.materialCategory,jdbcType=VARCHAR},
</if>
<if test="record.materialCode != null">
material_code = #{record.materialCode,jdbcType=VARCHAR},
</if>
<if test="record.materialName != null">
material_name = #{record.materialName,jdbcType=VARCHAR},
</if>
<if test="record.materialCompany != null">
material_company = #{record.materialCompany,jdbcType=VARCHAR},
</if>
<if test="record.logisticOrder != null">
logistic_order = #{record.logisticOrder,jdbcType=VARCHAR},
</if>
<if test="record.logisticCompany != null">
logistic_company = #{record.logisticCompany,jdbcType=VARCHAR},
</if>
<if test="record.logisticStatus != null">
logistic_status = #{record.logisticStatus,jdbcType=VARCHAR},
</if>
<if test="record.team != null">
team = #{record.team,jdbcType=VARCHAR},
</if>
<if test="record.isproduct != null">
isproduct = #{record.isproduct,jdbcType=INTEGER},
</if>
<if test="record.createdBy != null">
CREATED_BY = #{record.createdBy,jdbcType=VARCHAR},
</if>
<if test="record.createdTime != null">
CREATED_TIME = #{record.createdTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedBy != null">
UPDATED_BY = #{record.updatedBy,jdbcType=VARCHAR},
</if>
<if test="record.updatedTime != null">
UPDATED_TIME = #{record.updatedTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_delivery
set id = #{record.id,jdbcType=INTEGER},
delivery_order = #{record.deliveryOrder,jdbcType=VARCHAR},
install_order = #{record.installOrder,jdbcType=VARCHAR},
product_batch = #{record.productBatch,jdbcType=VARCHAR},
quantity = #{record.quantity,jdbcType=INTEGER},
material_category = #{record.materialCategory,jdbcType=VARCHAR},
material_code = #{record.materialCode,jdbcType=VARCHAR},
material_name = #{record.materialName,jdbcType=VARCHAR},
material_company = #{record.materialCompany,jdbcType=VARCHAR},
logistic_order = #{record.logisticOrder,jdbcType=VARCHAR},
logistic_company = #{record.logisticCompany,jdbcType=VARCHAR},
logistic_status = #{record.logisticStatus,jdbcType=VARCHAR},
team = #{record.team,jdbcType=VARCHAR},
isproduct = #{record.isproduct,jdbcType=INTEGER},
CREATED_BY = #{record.createdBy,jdbcType=VARCHAR},
CREATED_TIME = #{record.createdTime,jdbcType=TIMESTAMP},
UPDATED_BY = #{record.updatedBy,jdbcType=VARCHAR},
UPDATED_TIME = #{record.updatedTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.starcharge.wios.dao.entity.Delivery">
update t_delivery
<set>
<if test="deliveryOrder != null">
delivery_order = #{deliveryOrder,jdbcType=VARCHAR},
</if>
<if test="installOrder != null">
install_order = #{installOrder,jdbcType=VARCHAR},
</if>
<if test="productBatch != null">
product_batch = #{productBatch,jdbcType=VARCHAR},
</if>
<if test="quantity != null">
quantity = #{quantity,jdbcType=INTEGER},
</if>
<if test="materialCategory != null">
material_category = #{materialCategory,jdbcType=VARCHAR},
</if>
<if test="materialCode != null">
material_code = #{materialCode,jdbcType=VARCHAR},
</if>
<if test="materialName != null">
material_name = #{materialName,jdbcType=VARCHAR},
</if>
<if test="materialCompany != null">
material_company = #{materialCompany,jdbcType=VARCHAR},
</if>
<if test="logisticOrder != null">
logistic_order = #{logisticOrder,jdbcType=VARCHAR},
</if>
<if test="logisticCompany != null">
logistic_company = #{logisticCompany,jdbcType=VARCHAR},
</if>
<if test="logisticStatus != null">
logistic_status = #{logisticStatus,jdbcType=VARCHAR},
</if>
<if test="team != null">
team = #{team,jdbcType=VARCHAR},
</if>
<if test="isproduct != null">
isproduct = #{isproduct,jdbcType=INTEGER},
</if>
<if test="createdBy != null">
CREATED_BY = #{createdBy,jdbcType=VARCHAR},
</if>
<if test="createdTime != null">
CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP},
</if>
<if test="updatedBy != null">
UPDATED_BY = #{updatedBy,jdbcType=VARCHAR},
</if>
<if test="updatedTime != null">
UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.starcharge.wios.dao.entity.Delivery">
update t_delivery
set delivery_order = #{deliveryOrder,jdbcType=VARCHAR},
install_order = #{installOrder,jdbcType=VARCHAR},
product_batch = #{productBatch,jdbcType=VARCHAR},
quantity = #{quantity,jdbcType=INTEGER},
material_category = #{materialCategory,jdbcType=VARCHAR},
material_code = #{materialCode,jdbcType=VARCHAR},
material_name = #{materialName,jdbcType=VARCHAR},
material_company = #{materialCompany,jdbcType=VARCHAR},
logistic_order = #{logisticOrder,jdbcType=VARCHAR},
logistic_company = #{logisticCompany,jdbcType=VARCHAR},
logistic_status = #{logisticStatus,jdbcType=VARCHAR},
team = #{team,jdbcType=VARCHAR},
isproduct = #{isproduct,jdbcType=INTEGER},
CREATED_BY = #{createdBy,jdbcType=VARCHAR},
CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP},
UPDATED_BY = #{updatedBy,jdbcType=VARCHAR},
UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
package com.starcharge.wios.dao.mappers;
import com.starcharge.wios.dao.entity.Receivednote;
import com.starcharge.wios.dao.entity.ReceivednoteCriteria;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ReceivednoteMapper {
long countByExample(ReceivednoteCriteria example);
int deleteByExample(ReceivednoteCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(Receivednote record);
int insertSelective(Receivednote record);
List<Receivednote> selectByExample(ReceivednoteCriteria example);
Receivednote selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") Receivednote record, @Param("example") ReceivednoteCriteria example);
int updateByExample(@Param("record") Receivednote record, @Param("example") ReceivednoteCriteria example);
int updateByPrimaryKeySelective(Receivednote record);
int updateByPrimaryKey(Receivednote record);
List<Receivednote> selectReceivedNoteList(Receivednote receivednote);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.starcharge.wios.dao.mappers.ReceivednoteMapper">
<resultMap id="BaseResultMap" type="com.starcharge.wios.dao.entity.Receivednote">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="received_order" jdbcType="VARCHAR" property="receivedOrder" />
<result column="install_order" jdbcType="VARCHAR" property="installOrder" />
<result column="product_batch" jdbcType="VARCHAR" property="productBatch" />
<result column="material_category" jdbcType="VARCHAR" property="materialCategory" />
<result column="material_code" jdbcType="VARCHAR" property="materialCode" />
<result column="material_name" jdbcType="VARCHAR" property="materialName" />
<result column="arrival_warehouse" jdbcType="VARCHAR" property="arrivalWarehouse" />
<result column="arrival_warehouse_id" jdbcType="INTEGER" property="arrivalWarehouseId" />
<result column="receiver" jdbcType="VARCHAR" property="receiver" />
<result column="receiving_time" jdbcType="TIMESTAMP" property="receivingTime" />
<result column="arrival_quantity" jdbcType="INTEGER" property="arrivalQuantity" />
<result column="auxiliary_id" jdbcType="INTEGER" property="auxiliaryId" />
<result column="isproduct" jdbcType="INTEGER" property="isproduct" />
<result column="CREATED_BY" jdbcType="VARCHAR" property="createdBy" />
<result column="CREATED_TIME" jdbcType="TIMESTAMP" property="createdTime" />
<result column="UPDATED_BY" jdbcType="VARCHAR" property="updatedBy" />
<result column="UPDATED_TIME" jdbcType="TIMESTAMP" property="updatedTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, received_order, install_order, product_batch, material_category, material_code,
material_name, arrival_warehouse, arrival_warehouse_id, receiver, receiving_time,
arrival_quantity, auxiliary_id, isproduct, CREATED_BY, CREATED_TIME, UPDATED_BY,
UPDATED_TIME
</sql>
<select id="selectReceivedNoteList" parameterType="com.starcharge.wios.dao.entity.Receivednote" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from t_received_note
<where>
<if test="receivedOrder != null and receivedOrder != ''"> and received_order = #{receivedOrder}</if>
<if test="installOrder != null and installOrder != ''"> and install_order = #{installOrder}</if>
<if test="productBatch != null and productBatch != ''"> and product_batch = #{productBatch}</if>
<if test="materialCategory != null and materialCategory != ''"> and material_category = #{materialCategory}</if>
<if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if>
<if test="arrivalWarehouse != null and arrivalWarehouse != ''"> and arrival_warehouse = #{arrivalWarehouse}</if>
<if test="arrivalWarehouseId != null "> and arrival_warehouse_id = #{arrivalWarehouseId}</if>
<if test="receiver != null and receiver != ''"> and receiver = #{receiver}</if>
<if test="receivingTime != null "> and receiving_time = #{receivingTime}</if>
<if test="arrivalQuantity != null "> and arrival_quantity = #{arrivalQuantity}</if>
<if test="auxiliaryId != null "> and auxiliary_id = #{auxiliaryId}</if>
<if test="isproduct != null "> and isproduct = #{isproduct}</if>
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if>
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if>
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if>
<if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</if>
</where>
</select>
<select id="selectByExample" parameterType="com.starcharge.wios.dao.entity.ReceivednoteCriteria" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_received_note
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_received_note
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from t_received_note
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.starcharge.wios.dao.entity.ReceivednoteCriteria">
delete from t_received_note
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.starcharge.wios.dao.entity.Receivednote">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into t_received_note (received_order, install_order, product_batch,
material_category, material_code, material_name,
arrival_warehouse, arrival_warehouse_id, receiver,
receiving_time, arrival_quantity, auxiliary_id,
isproduct, CREATED_BY, CREATED_TIME,
UPDATED_BY, UPDATED_TIME)
values (#{receivedOrder,jdbcType=VARCHAR}, #{installOrder,jdbcType=VARCHAR}, #{productBatch,jdbcType=VARCHAR},
#{materialCategory,jdbcType=VARCHAR}, #{materialCode,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR},
#{arrivalWarehouse,jdbcType=VARCHAR}, #{arrivalWarehouseId,jdbcType=INTEGER}, #{receiver,jdbcType=VARCHAR},
#{receivingTime,jdbcType=TIMESTAMP}, #{arrivalQuantity,jdbcType=INTEGER}, #{auxiliaryId,jdbcType=INTEGER},
#{isproduct,jdbcType=INTEGER}, #{createdBy,jdbcType=VARCHAR}, #{createdTime,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=VARCHAR}, #{updatedTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.starcharge.wios.dao.entity.Receivednote">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into t_received_note
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="receivedOrder != null">
received_order,
</if>
<if test="installOrder != null">
install_order,
</if>
<if test="productBatch != null">
product_batch,
</if>
<if test="materialCategory != null">
material_category,
</if>
<if test="materialCode != null">
material_code,
</if>
<if test="materialName != null">
material_name,
</if>
<if test="arrivalWarehouse != null">
arrival_warehouse,
</if>
<if test="arrivalWarehouseId != null">
arrival_warehouse_id,
</if>
<if test="receiver != null">
receiver,
</if>
<if test="receivingTime != null">
receiving_time,
</if>
<if test="arrivalQuantity != null">
arrival_quantity,
</if>
<if test="auxiliaryId != null">
auxiliary_id,
</if>
<if test="isproduct != null">
isproduct,
</if>
<if test="createdBy != null">
CREATED_BY,
</if>
<if test="createdTime != null">
CREATED_TIME,
</if>
<if test="updatedBy != null">
UPDATED_BY,
</if>
<if test="updatedTime != null">
UPDATED_TIME,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="receivedOrder != null">
#{receivedOrder,jdbcType=VARCHAR},
</if>
<if test="installOrder != null">
#{installOrder,jdbcType=VARCHAR},
</if>
<if test="productBatch != null">
#{productBatch,jdbcType=VARCHAR},
</if>
<if test="materialCategory != null">
#{materialCategory,jdbcType=VARCHAR},
</if>
<if test="materialCode != null">
#{materialCode,jdbcType=VARCHAR},
</if>
<if test="materialName != null">
#{materialName,jdbcType=VARCHAR},
</if>
<if test="arrivalWarehouse != null">
#{arrivalWarehouse,jdbcType=VARCHAR},
</if>
<if test="arrivalWarehouseId != null">
#{arrivalWarehouseId,jdbcType=INTEGER},
</if>
<if test="receiver != null">
#{receiver,jdbcType=VARCHAR},
</if>
<if test="receivingTime != null">
#{receivingTime,jdbcType=TIMESTAMP},
</if>
<if test="arrivalQuantity != null">
#{arrivalQuantity,jdbcType=INTEGER},
</if>
<if test="auxiliaryId != null">
#{auxiliaryId,jdbcType=INTEGER},
</if>
<if test="isproduct != null">
#{isproduct,jdbcType=INTEGER},
</if>
<if test="createdBy != null">
#{createdBy,jdbcType=VARCHAR},
</if>
<if test="createdTime != null">
#{createdTime,jdbcType=TIMESTAMP},
</if>
<if test="updatedBy != null">
#{updatedBy,jdbcType=VARCHAR},
</if>
<if test="updatedTime != null">
#{updatedTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.starcharge.wios.dao.entity.ReceivednoteCriteria" resultType="java.lang.Long">
select count(*) from t_received_note
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_received_note
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.receivedOrder != null">
received_order = #{record.receivedOrder,jdbcType=VARCHAR},
</if>
<if test="record.installOrder != null">
install_order = #{record.installOrder,jdbcType=VARCHAR},
</if>
<if test="record.productBatch != null">
product_batch = #{record.productBatch,jdbcType=VARCHAR},
</if>
<if test="record.materialCategory != null">
material_category = #{record.materialCategory,jdbcType=VARCHAR},
</if>
<if test="record.materialCode != null">
material_code = #{record.materialCode,jdbcType=VARCHAR},
</if>
<if test="record.materialName != null">
material_name = #{record.materialName,jdbcType=VARCHAR},
</if>
<if test="record.arrivalWarehouse != null">
arrival_warehouse = #{record.arrivalWarehouse,jdbcType=VARCHAR},
</if>
<if test="record.arrivalWarehouseId != null">
arrival_warehouse_id = #{record.arrivalWarehouseId,jdbcType=INTEGER},
</if>
<if test="record.receiver != null">
receiver = #{record.receiver,jdbcType=VARCHAR},
</if>
<if test="record.receivingTime != null">
receiving_time = #{record.receivingTime,jdbcType=TIMESTAMP},
</if>
<if test="record.arrivalQuantity != null">
arrival_quantity = #{record.arrivalQuantity,jdbcType=INTEGER},
</if>
<if test="record.auxiliaryId != null">
auxiliary_id = #{record.auxiliaryId,jdbcType=INTEGER},
</if>
<if test="record.isproduct != null">
isproduct = #{record.isproduct,jdbcType=INTEGER},
</if>
<if test="record.createdBy != null">
CREATED_BY = #{record.createdBy,jdbcType=VARCHAR},
</if>
<if test="record.createdTime != null">
CREATED_TIME = #{record.createdTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedBy != null">
UPDATED_BY = #{record.updatedBy,jdbcType=VARCHAR},
</if>
<if test="record.updatedTime != null">
UPDATED_TIME = #{record.updatedTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_received_note
set id = #{record.id,jdbcType=INTEGER},
received_order = #{record.receivedOrder,jdbcType=VARCHAR},
install_order = #{record.installOrder,jdbcType=VARCHAR},
product_batch = #{record.productBatch,jdbcType=VARCHAR},
material_category = #{record.materialCategory,jdbcType=VARCHAR},
material_code = #{record.materialCode,jdbcType=VARCHAR},
material_name = #{record.materialName,jdbcType=VARCHAR},
arrival_warehouse = #{record.arrivalWarehouse,jdbcType=VARCHAR},
arrival_warehouse_id = #{record.arrivalWarehouseId,jdbcType=INTEGER},
receiver = #{record.receiver,jdbcType=VARCHAR},
receiving_time = #{record.receivingTime,jdbcType=TIMESTAMP},
arrival_quantity = #{record.arrivalQuantity,jdbcType=INTEGER},
auxiliary_id = #{record.auxiliaryId,jdbcType=INTEGER},
isproduct = #{record.isproduct,jdbcType=INTEGER},
CREATED_BY = #{record.createdBy,jdbcType=VARCHAR},
CREATED_TIME = #{record.createdTime,jdbcType=TIMESTAMP},
UPDATED_BY = #{record.updatedBy,jdbcType=VARCHAR},
UPDATED_TIME = #{record.updatedTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.starcharge.wios.dao.entity.Receivednote">
update t_received_note
<set>
<if test="receivedOrder != null">
received_order = #{receivedOrder,jdbcType=VARCHAR},
</if>
<if test="installOrder != null">
install_order = #{installOrder,jdbcType=VARCHAR},
</if>
<if test="productBatch != null">
product_batch = #{productBatch,jdbcType=VARCHAR},
</if>
<if test="materialCategory != null">
material_category = #{materialCategory,jdbcType=VARCHAR},
</if>
<if test="materialCode != null">
material_code = #{materialCode,jdbcType=VARCHAR},
</if>
<if test="materialName != null">
material_name = #{materialName,jdbcType=VARCHAR},
</if>
<if test="arrivalWarehouse != null">
arrival_warehouse = #{arrivalWarehouse,jdbcType=VARCHAR},
</if>
<if test="arrivalWarehouseId != null">
arrival_warehouse_id = #{arrivalWarehouseId,jdbcType=INTEGER},
</if>
<if test="receiver != null">
receiver = #{receiver,jdbcType=VARCHAR},
</if>
<if test="receivingTime != null">
receiving_time = #{receivingTime,jdbcType=TIMESTAMP},
</if>
<if test="arrivalQuantity != null">
arrival_quantity = #{arrivalQuantity,jdbcType=INTEGER},
</if>
<if test="auxiliaryId != null">
auxiliary_id = #{auxiliaryId,jdbcType=INTEGER},
</if>
<if test="isproduct != null">
isproduct = #{isproduct,jdbcType=INTEGER},
</if>
<if test="createdBy != null">
CREATED_BY = #{createdBy,jdbcType=VARCHAR},
</if>
<if test="createdTime != null">
CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP},
</if>
<if test="updatedBy != null">
UPDATED_BY = #{updatedBy,jdbcType=VARCHAR},
</if>
<if test="updatedTime != null">
UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.starcharge.wios.dao.entity.Receivednote">
update t_received_note
set received_order = #{receivedOrder,jdbcType=VARCHAR},
install_order = #{installOrder,jdbcType=VARCHAR},
product_batch = #{productBatch,jdbcType=VARCHAR},
material_category = #{materialCategory,jdbcType=VARCHAR},
material_code = #{materialCode,jdbcType=VARCHAR},
material_name = #{materialName,jdbcType=VARCHAR},
arrival_warehouse = #{arrivalWarehouse,jdbcType=VARCHAR},
arrival_warehouse_id = #{arrivalWarehouseId,jdbcType=INTEGER},
receiver = #{receiver,jdbcType=VARCHAR},
receiving_time = #{receivingTime,jdbcType=TIMESTAMP},
arrival_quantity = #{arrivalQuantity,jdbcType=INTEGER},
auxiliary_id = #{auxiliaryId,jdbcType=INTEGER},
isproduct = #{isproduct,jdbcType=INTEGER},
CREATED_BY = #{createdBy,jdbcType=VARCHAR},
CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP},
UPDATED_BY = #{updatedBy,jdbcType=VARCHAR},
UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
package com.starcharge.wios.dao.mappers;
import com.starcharge.wios.dao.entity.Reject;
import com.starcharge.wios.dao.entity.RejectCriteria;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface RejectMapper {
long countByExample(RejectCriteria example);
int deleteByExample(RejectCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(Reject record);
int insertSelective(Reject record);
List<Reject> selectByExample(RejectCriteria example);
Reject selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") Reject record, @Param("example") RejectCriteria example);
int updateByExample(@Param("record") Reject record, @Param("example") RejectCriteria example);
int updateByPrimaryKeySelective(Reject record);
int updateByPrimaryKey(Reject record);
List<Reject> selectRejectList(Reject reject);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.starcharge.wios.dao.mappers.RejectMapper">
<resultMap id="BaseResultMap" type="com.starcharge.wios.dao.entity.Reject">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="reject_order" jdbcType="VARCHAR" property="rejectOrder" />
<result column="install_order" jdbcType="VARCHAR" property="installOrder" />
<result column="product_batch" jdbcType="VARCHAR" property="productBatch" />
<result column="quantity" jdbcType="INTEGER" property="quantity" />
<result column="material_category" jdbcType="VARCHAR" property="materialCategory" />
<result column="material_code" jdbcType="VARCHAR" property="materialCode" />
<result column="material_name" jdbcType="VARCHAR" property="materialName" />
<result column="material_company" jdbcType="VARCHAR" property="materialCompany" />
<result column="logistic_order" jdbcType="VARCHAR" property="logisticOrder" />
<result column="logistic_company" jdbcType="VARCHAR" property="logisticCompany" />
<result column="warehouse_name" jdbcType="VARCHAR" property="warehouseName" />
<result column="warehouse_id" jdbcType="INTEGER" property="warehouseId" />
<result column="reason" jdbcType="VARCHAR" property="reason" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="check_time" jdbcType="TIMESTAMP" property="checkTime" />
<result column="check_user" jdbcType="VARCHAR" property="checkUser" />
<result column="check_user_name" jdbcType="VARCHAR" property="checkUserName" />
<result column="check_suggestion" jdbcType="VARCHAR" property="checkSuggestion" />
<result column="isproduct" jdbcType="INTEGER" property="isproduct" />
<result column="CREATED_BY" jdbcType="VARCHAR" property="createdBy" />
<result column="CREATED_TIME" jdbcType="TIMESTAMP" property="createdTime" />
<result column="UPDATED_BY" jdbcType="VARCHAR" property="updatedBy" />
<result column="UPDATED_TIME" jdbcType="TIMESTAMP" property="updatedTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, reject_order, install_order, product_batch, quantity, material_category, material_code,
material_name, material_company, logistic_order, logistic_company, warehouse_name,
warehouse_id, reason, status, check_time, check_user, check_user_name, check_suggestion,
isproduct, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME
</sql>
<select id="selectRejectList" parameterType="com.starcharge.wios.dao.entity.Reject" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from t_reject
<where>
<if test="rejectOrder != null and rejectOrder != ''"> and reject_order = #{rejectOrder}</if>
<if test="installOrder != null and installOrder != ''"> and install_order = #{installOrder}</if>
<if test="productBatch != null and productBatch != ''"> and product_batch = #{productBatch}</if>
<if test="quantity != null "> and quantity = #{quantity}</if>
<if test="materialCategory != null and materialCategory != ''"> and material_category = #{materialCategory}</if>
<if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if>
<if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if>
<if test="materialCompany != null and materialCompany != ''"> and material_company = #{materialCompany}</if>
<if test="logisticOrder != null and logisticOrder != ''"> and logistic_order = #{logisticOrder}</if>
<if test="logisticCompany != null and logisticCompany != ''"> and logistic_company = #{logisticCompany}</if>
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
<if test="warehouseId != null "> and warehouse_id = #{warehouseId}</if>
<if test="reason != null and reason != ''"> and reason like concat('%', #{reason}, '%')</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="checkTime != null "> and check_time = #{checkTime}</if>
<if test="checkUser != null and checkUser != ''"> and check_user = #{checkUser}</if>
<if test="checkUserName != null and checkUserName != ''"> and check_user_name like concat('%', #{checkUserName}, '%')</if>
<if test="checkSuggestion != null and checkSuggestion != ''"> and check_suggestion like concat('%', #{checkSuggestion}, '%')</if>
<if test="isproduct != null "> and isproduct = #{isproduct}</if>
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if>
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if>
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if>
<if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</if>
</where>
</select>
<select id="selectByExample" parameterType="com.starcharge.wios.dao.entity.RejectCriteria" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_reject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_reject
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from t_reject
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.starcharge.wios.dao.entity.RejectCriteria">
delete from t_reject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.starcharge.wios.dao.entity.Reject">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into t_reject (reject_order, install_order, product_batch,
quantity, material_category, material_code,
material_name, material_company, logistic_order,
logistic_company, warehouse_name, warehouse_id,
reason, status, check_time,
check_user, check_user_name, check_suggestion,
isproduct, CREATED_BY, CREATED_TIME,
UPDATED_BY, UPDATED_TIME)
values (#{rejectOrder,jdbcType=VARCHAR}, #{installOrder,jdbcType=VARCHAR}, #{productBatch,jdbcType=VARCHAR},
#{quantity,jdbcType=INTEGER}, #{materialCategory,jdbcType=VARCHAR}, #{materialCode,jdbcType=VARCHAR},
#{materialName,jdbcType=VARCHAR}, #{materialCompany,jdbcType=VARCHAR}, #{logisticOrder,jdbcType=VARCHAR},
#{logisticCompany,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR}, #{warehouseId,jdbcType=INTEGER},
#{reason,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{checkTime,jdbcType=TIMESTAMP},
#{checkUser,jdbcType=VARCHAR}, #{checkUserName,jdbcType=VARCHAR}, #{checkSuggestion,jdbcType=VARCHAR},
#{isproduct,jdbcType=INTEGER}, #{createdBy,jdbcType=VARCHAR}, #{createdTime,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=VARCHAR}, #{updatedTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.starcharge.wios.dao.entity.Reject">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into t_reject
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="rejectOrder != null">
reject_order,
</if>
<if test="installOrder != null">
install_order,
</if>
<if test="productBatch != null">
product_batch,
</if>
<if test="quantity != null">
quantity,
</if>
<if test="materialCategory != null">
material_category,
</if>
<if test="materialCode != null">
material_code,
</if>
<if test="materialName != null">
material_name,
</if>
<if test="materialCompany != null">
material_company,
</if>
<if test="logisticOrder != null">
logistic_order,
</if>
<if test="logisticCompany != null">
logistic_company,
</if>
<if test="warehouseName != null">
warehouse_name,
</if>
<if test="warehouseId != null">
warehouse_id,
</if>
<if test="reason != null">
reason,
</if>
<if test="status != null">
status,
</if>
<if test="checkTime != null">
check_time,
</if>
<if test="checkUser != null">
check_user,
</if>
<if test="checkUserName != null">
check_user_name,
</if>
<if test="checkSuggestion != null">
check_suggestion,
</if>
<if test="isproduct != null">
isproduct,
</if>
<if test="createdBy != null">
CREATED_BY,
</if>
<if test="createdTime != null">
CREATED_TIME,
</if>
<if test="updatedBy != null">
UPDATED_BY,
</if>
<if test="updatedTime != null">
UPDATED_TIME,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="rejectOrder != null">
#{rejectOrder,jdbcType=VARCHAR},
</if>
<if test="installOrder != null">
#{installOrder,jdbcType=VARCHAR},
</if>
<if test="productBatch != null">
#{productBatch,jdbcType=VARCHAR},
</if>
<if test="quantity != null">
#{quantity,jdbcType=INTEGER},
</if>
<if test="materialCategory != null">
#{materialCategory,jdbcType=VARCHAR},
</if>
<if test="materialCode != null">
#{materialCode,jdbcType=VARCHAR},
</if>
<if test="materialName != null">
#{materialName,jdbcType=VARCHAR},
</if>
<if test="materialCompany != null">
#{materialCompany,jdbcType=VARCHAR},
</if>
<if test="logisticOrder != null">
#{logisticOrder,jdbcType=VARCHAR},
</if>
<if test="logisticCompany != null">
#{logisticCompany,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
#{warehouseName,jdbcType=VARCHAR},
</if>
<if test="warehouseId != null">
#{warehouseId,jdbcType=INTEGER},
</if>
<if test="reason != null">
#{reason,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="checkTime != null">
#{checkTime,jdbcType=TIMESTAMP},
</if>
<if test="checkUser != null">
#{checkUser,jdbcType=VARCHAR},
</if>
<if test="checkUserName != null">
#{checkUserName,jdbcType=VARCHAR},
</if>
<if test="checkSuggestion != null">
#{checkSuggestion,jdbcType=VARCHAR},
</if>
<if test="isproduct != null">
#{isproduct,jdbcType=INTEGER},
</if>
<if test="createdBy != null">
#{createdBy,jdbcType=VARCHAR},
</if>
<if test="createdTime != null">
#{createdTime,jdbcType=TIMESTAMP},
</if>
<if test="updatedBy != null">
#{updatedBy,jdbcType=VARCHAR},
</if>
<if test="updatedTime != null">
#{updatedTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.starcharge.wios.dao.entity.RejectCriteria" resultType="java.lang.Long">
select count(*) from t_reject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_reject
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.rejectOrder != null">
reject_order = #{record.rejectOrder,jdbcType=VARCHAR},
</if>
<if test="record.installOrder != null">
install_order = #{record.installOrder,jdbcType=VARCHAR},
</if>
<if test="record.productBatch != null">
product_batch = #{record.productBatch,jdbcType=VARCHAR},
</if>
<if test="record.quantity != null">
quantity = #{record.quantity,jdbcType=INTEGER},
</if>
<if test="record.materialCategory != null">
material_category = #{record.materialCategory,jdbcType=VARCHAR},
</if>
<if test="record.materialCode != null">
material_code = #{record.materialCode,jdbcType=VARCHAR},
</if>
<if test="record.materialName != null">
material_name = #{record.materialName,jdbcType=VARCHAR},
</if>
<if test="record.materialCompany != null">
material_company = #{record.materialCompany,jdbcType=VARCHAR},
</if>
<if test="record.logisticOrder != null">
logistic_order = #{record.logisticOrder,jdbcType=VARCHAR},
</if>
<if test="record.logisticCompany != null">
logistic_company = #{record.logisticCompany,jdbcType=VARCHAR},
</if>
<if test="record.warehouseName != null">
warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
</if>
<if test="record.warehouseId != null">
warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
</if>
<if test="record.reason != null">
reason = #{record.reason,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=VARCHAR},
</if>
<if test="record.checkTime != null">
check_time = #{record.checkTime,jdbcType=TIMESTAMP},
</if>
<if test="record.checkUser != null">
check_user = #{record.checkUser,jdbcType=VARCHAR},
</if>
<if test="record.checkUserName != null">
check_user_name = #{record.checkUserName,jdbcType=VARCHAR},
</if>
<if test="record.checkSuggestion != null">
check_suggestion = #{record.checkSuggestion,jdbcType=VARCHAR},
</if>
<if test="record.isproduct != null">
isproduct = #{record.isproduct,jdbcType=INTEGER},
</if>
<if test="record.createdBy != null">
CREATED_BY = #{record.createdBy,jdbcType=VARCHAR},
</if>
<if test="record.createdTime != null">
CREATED_TIME = #{record.createdTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedBy != null">
UPDATED_BY = #{record.updatedBy,jdbcType=VARCHAR},
</if>
<if test="record.updatedTime != null">
UPDATED_TIME = #{record.updatedTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_reject
set id = #{record.id,jdbcType=INTEGER},
reject_order = #{record.rejectOrder,jdbcType=VARCHAR},
install_order = #{record.installOrder,jdbcType=VARCHAR},
product_batch = #{record.productBatch,jdbcType=VARCHAR},
quantity = #{record.quantity,jdbcType=INTEGER},
material_category = #{record.materialCategory,jdbcType=VARCHAR},
material_code = #{record.materialCode,jdbcType=VARCHAR},
material_name = #{record.materialName,jdbcType=VARCHAR},
material_company = #{record.materialCompany,jdbcType=VARCHAR},
logistic_order = #{record.logisticOrder,jdbcType=VARCHAR},
logistic_company = #{record.logisticCompany,jdbcType=VARCHAR},
warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
reason = #{record.reason,jdbcType=VARCHAR},
status = #{record.status,jdbcType=VARCHAR},
check_time = #{record.checkTime,jdbcType=TIMESTAMP},
check_user = #{record.checkUser,jdbcType=VARCHAR},
check_user_name = #{record.checkUserName,jdbcType=VARCHAR},
check_suggestion = #{record.checkSuggestion,jdbcType=VARCHAR},
isproduct = #{record.isproduct,jdbcType=INTEGER},
CREATED_BY = #{record.createdBy,jdbcType=VARCHAR},
CREATED_TIME = #{record.createdTime,jdbcType=TIMESTAMP},
UPDATED_BY = #{record.updatedBy,jdbcType=VARCHAR},
UPDATED_TIME = #{record.updatedTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.starcharge.wios.dao.entity.Reject">
update t_reject
<set>
<if test="rejectOrder != null">
reject_order = #{rejectOrder,jdbcType=VARCHAR},
</if>
<if test="installOrder != null">
install_order = #{installOrder,jdbcType=VARCHAR},
</if>
<if test="productBatch != null">
product_batch = #{productBatch,jdbcType=VARCHAR},
</if>
<if test="quantity != null">
quantity = #{quantity,jdbcType=INTEGER},
</if>
<if test="materialCategory != null">
material_category = #{materialCategory,jdbcType=VARCHAR},
</if>
<if test="materialCode != null">
material_code = #{materialCode,jdbcType=VARCHAR},
</if>
<if test="materialName != null">
material_name = #{materialName,jdbcType=VARCHAR},
</if>
<if test="materialCompany != null">
material_company = #{materialCompany,jdbcType=VARCHAR},
</if>
<if test="logisticOrder != null">
logistic_order = #{logisticOrder,jdbcType=VARCHAR},
</if>
<if test="logisticCompany != null">
logistic_company = #{logisticCompany,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
</if>
<if test="warehouseId != null">
warehouse_id = #{warehouseId,jdbcType=INTEGER},
</if>
<if test="reason != null">
reason = #{reason,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=VARCHAR},
</if>
<if test="checkTime != null">
check_time = #{checkTime,jdbcType=TIMESTAMP},
</if>
<if test="checkUser != null">
check_user = #{checkUser,jdbcType=VARCHAR},
</if>
<if test="checkUserName != null">
check_user_name = #{checkUserName,jdbcType=VARCHAR},
</if>
<if test="checkSuggestion != null">
check_suggestion = #{checkSuggestion,jdbcType=VARCHAR},
</if>
<if test="isproduct != null">
isproduct = #{isproduct,jdbcType=INTEGER},
</if>
<if test="createdBy != null">
CREATED_BY = #{createdBy,jdbcType=VARCHAR},
</if>
<if test="createdTime != null">
CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP},
</if>
<if test="updatedBy != null">
UPDATED_BY = #{updatedBy,jdbcType=VARCHAR},
</if>
<if test="updatedTime != null">
UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.starcharge.wios.dao.entity.Reject">
update t_reject
set reject_order = #{rejectOrder,jdbcType=VARCHAR},
install_order = #{installOrder,jdbcType=VARCHAR},
product_batch = #{productBatch,jdbcType=VARCHAR},
quantity = #{quantity,jdbcType=INTEGER},
material_category = #{materialCategory,jdbcType=VARCHAR},
material_code = #{materialCode,jdbcType=VARCHAR},
material_name = #{materialName,jdbcType=VARCHAR},
material_company = #{materialCompany,jdbcType=VARCHAR},
logistic_order = #{logisticOrder,jdbcType=VARCHAR},
logistic_company = #{logisticCompany,jdbcType=VARCHAR},
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
warehouse_id = #{warehouseId,jdbcType=INTEGER},
reason = #{reason,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
check_time = #{checkTime,jdbcType=TIMESTAMP},
check_user = #{checkUser,jdbcType=VARCHAR},
check_user_name = #{checkUserName,jdbcType=VARCHAR},
check_suggestion = #{checkSuggestion,jdbcType=VARCHAR},
isproduct = #{isproduct,jdbcType=INTEGER},
CREATED_BY = #{createdBy,jdbcType=VARCHAR},
CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP},
UPDATED_BY = #{updatedBy,jdbcType=VARCHAR},
UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
package com.starcharge.wios.dao.mappers;
import com.starcharge.wios.dao.entity.Tauxiliarymaterials;
import com.starcharge.wios.dao.entity.TauxiliarymaterialsCriteria;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface TauxiliarymaterialsMapper {
long countByExample(TauxiliarymaterialsCriteria example);
int deleteByExample(TauxiliarymaterialsCriteria example);
int deleteByPrimaryKey(Integer id);
int insert(Tauxiliarymaterials record);
int insertSelective(Tauxiliarymaterials record);
List<Tauxiliarymaterials> selectByExample(TauxiliarymaterialsCriteria example);
Tauxiliarymaterials selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") Tauxiliarymaterials record, @Param("example") TauxiliarymaterialsCriteria example);
int updateByExample(@Param("record") Tauxiliarymaterials record, @Param("example") TauxiliarymaterialsCriteria example);
int updateByPrimaryKeySelective(Tauxiliarymaterials record);
int updateByPrimaryKey(Tauxiliarymaterials record);
/**
* 查询辅材申请列表
*
* @param tAuxiliaryMaterials 辅材申请
* @return 辅材申请集合
*/
public List<Tauxiliarymaterials> selectTAuxiliaryMaterialsList(Tauxiliarymaterials tAuxiliaryMaterials);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.starcharge.wios.dao.mappers.TauxiliarymaterialsMapper">
<resultMap id="BaseResultMap" type="com.starcharge.wios.dao.entity.Tauxiliarymaterials">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="material_code" jdbcType="VARCHAR" property="materialCode" />
<result column="material_name" jdbcType="VARCHAR" property="materialName" />
<result column="measurement_unit" jdbcType="VARCHAR" property="measurementUnit" />
<result column="apply_quantity" jdbcType="VARCHAR" property="applyQuantity" />
<result column="approved_quantity" jdbcType="VARCHAR" property="approvedQuantity" />
<result column="currenty_sap" jdbcType="VARCHAR" property="currentySap" />
<result column="month_amount_sap" jdbcType="VARCHAR" property="monthAmountSap" />
<result column="year_amount" jdbcType="VARCHAR" property="yearAmount" />
<result column="apply_status" jdbcType="VARCHAR" property="applyStatus" />
<result column="team" jdbcType="VARCHAR" property="team" />
<result column="logistic_status" jdbcType="VARCHAR" property="logisticStatus" />
<result column="receiving_status" jdbcType="VARCHAR" property="receivingStatus" />
<result column="recipents" jdbcType="VARCHAR" property="recipents" />
<result column="receive_address" jdbcType="VARCHAR" property="receiveAddress" />
<result column="receive_phone" jdbcType="VARCHAR" property="receivePhone" />
<result column="apply_time" jdbcType="TIMESTAMP" property="applyTime" />
<result column="check_user" jdbcType="VARCHAR" property="checkUser" />
<result column="check_user_name" jdbcType="VARCHAR" property="checkUserName" />
<result column="check_time" jdbcType="TIMESTAMP" property="checkTime" />
<result column="check_suggestion" jdbcType="VARCHAR" property="checkSuggestion" />
<result column="CREATED_BY" jdbcType="VARCHAR" property="createdBy" />
<result column="CREATED_TIME" jdbcType="TIMESTAMP" property="createdTime" />
<result column="UPDATED_BY" jdbcType="VARCHAR" property="updatedBy" />
<result column="UPDATED_TIME" jdbcType="TIMESTAMP" property="updatedTime" />
<result column="install_order" jdbcType="VARCHAR" property="installOrder" />
<result column="specification" jdbcType="VARCHAR" property="specification" />
<result column="logistic_order" jdbcType="VARCHAR" property="logisticOrder" />
<result column="apply_inventory" jdbcType="VARCHAR" property="applyInventory" />
<result column="apply_order" jdbcType="VARCHAR" property="applyOrder" />
<result column="warehouse_id" jdbcType="VARCHAR" property="warehouseId" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, material_code, material_name, measurement_unit, apply_quantity, approved_quantity,
currenty_sap, month_amount_sap, year_amount, apply_status, team, logistic_status,
receiving_status, recipents, receive_address, receive_phone, apply_time, check_user,
check_user_name, check_time, check_suggestion, CREATED_BY, CREATED_TIME, UPDATED_BY,
UPDATED_TIME, install_order, specification, logistic_order, apply_inventory, apply_order,
warehouse_id
</sql>
<select id="selectByExample" parameterType="com.starcharge.wios.dao.entity.TauxiliarymaterialsCriteria" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_auxiliary_materials
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_auxiliary_materials
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from t_auxiliary_materials
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.starcharge.wios.dao.entity.TauxiliarymaterialsCriteria">
delete from t_auxiliary_materials
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.starcharge.wios.dao.entity.Tauxiliarymaterials">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into t_auxiliary_materials (material_code, material_name, measurement_unit,
apply_quantity, approved_quantity, currenty_sap,
month_amount_sap, year_amount, apply_status,
team, logistic_status, receiving_status,
recipents, receive_address, receive_phone,
apply_time, check_user, check_user_name,
check_time, check_suggestion, CREATED_BY,
CREATED_TIME, UPDATED_BY, UPDATED_TIME,
install_order, specification, logistic_order,
apply_inventory, apply_order, warehouse_id
)
values (#{materialCode,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, #{measurementUnit,jdbcType=VARCHAR},
#{applyQuantity,jdbcType=VARCHAR}, #{approvedQuantity,jdbcType=VARCHAR}, #{currentySap,jdbcType=VARCHAR},
#{monthAmountSap,jdbcType=VARCHAR}, #{yearAmount,jdbcType=VARCHAR}, #{applyStatus,jdbcType=VARCHAR},
#{team,jdbcType=VARCHAR}, #{logisticStatus,jdbcType=VARCHAR}, #{receivingStatus,jdbcType=VARCHAR},
#{recipents,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}, #{receivePhone,jdbcType=VARCHAR},
#{applyTime,jdbcType=TIMESTAMP}, #{checkUser,jdbcType=VARCHAR}, #{checkUserName,jdbcType=VARCHAR},
#{checkTime,jdbcType=TIMESTAMP}, #{checkSuggestion,jdbcType=VARCHAR}, #{createdBy,jdbcType=VARCHAR},
#{createdTime,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=VARCHAR}, #{updatedTime,jdbcType=TIMESTAMP},
#{installOrder,jdbcType=VARCHAR}, #{specification,jdbcType=VARCHAR}, #{logisticOrder,jdbcType=VARCHAR},
#{applyInventory,jdbcType=VARCHAR}, #{applyOrder,jdbcType=VARCHAR}, #{warehouseId,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.starcharge.wios.dao.entity.Tauxiliarymaterials">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into t_auxiliary_materials
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="materialCode != null">
material_code,
</if>
<if test="materialName != null">
material_name,
</if>
<if test="measurementUnit != null">
measurement_unit,
</if>
<if test="applyQuantity != null">
apply_quantity,
</if>
<if test="approvedQuantity != null">
approved_quantity,
</if>
<if test="currentySap != null">
currenty_sap,
</if>
<if test="monthAmountSap != null">
month_amount_sap,
</if>
<if test="yearAmount != null">
year_amount,
</if>
<if test="applyStatus != null">
apply_status,
</if>
<if test="team != null">
team,
</if>
<if test="logisticStatus != null">
logistic_status,
</if>
<if test="receivingStatus != null">
receiving_status,
</if>
<if test="recipents != null">
recipents,
</if>
<if test="receiveAddress != null">
receive_address,
</if>
<if test="receivePhone != null">
receive_phone,
</if>
<if test="applyTime != null">
apply_time,
</if>
<if test="checkUser != null">
check_user,
</if>
<if test="checkUserName != null">
check_user_name,
</if>
<if test="checkTime != null">
check_time,
</if>
<if test="checkSuggestion != null">
check_suggestion,
</if>
<if test="createdBy != null">
CREATED_BY,
</if>
<if test="createdTime != null">
CREATED_TIME,
</if>
<if test="updatedBy != null">
UPDATED_BY,
</if>
<if test="updatedTime != null">
UPDATED_TIME,
</if>
<if test="installOrder != null">
install_order,
</if>
<if test="specification != null">
specification,
</if>
<if test="logisticOrder != null">
logistic_order,
</if>
<if test="applyInventory != null">
apply_inventory,
</if>
<if test="applyOrder != null">
apply_order,
</if>
<if test="warehouseId != null">
warehouse_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="materialCode != null">
#{materialCode,jdbcType=VARCHAR},
</if>
<if test="materialName != null">
#{materialName,jdbcType=VARCHAR},
</if>
<if test="measurementUnit != null">
#{measurementUnit,jdbcType=VARCHAR},
</if>
<if test="applyQuantity != null">
#{applyQuantity,jdbcType=VARCHAR},
</if>
<if test="approvedQuantity != null">
#{approvedQuantity,jdbcType=VARCHAR},
</if>
<if test="currentySap != null">
#{currentySap,jdbcType=VARCHAR},
</if>
<if test="monthAmountSap != null">
#{monthAmountSap,jdbcType=VARCHAR},
</if>
<if test="yearAmount != null">
#{yearAmount,jdbcType=VARCHAR},
</if>
<if test="applyStatus != null">
#{applyStatus,jdbcType=VARCHAR},
</if>
<if test="team != null">
#{team,jdbcType=VARCHAR},
</if>
<if test="logisticStatus != null">
#{logisticStatus,jdbcType=VARCHAR},
</if>
<if test="receivingStatus != null">
#{receivingStatus,jdbcType=VARCHAR},
</if>
<if test="recipents != null">
#{recipents,jdbcType=VARCHAR},
</if>
<if test="receiveAddress != null">
#{receiveAddress,jdbcType=VARCHAR},
</if>
<if test="receivePhone != null">
#{receivePhone,jdbcType=VARCHAR},
</if>
<if test="applyTime != null">
#{applyTime,jdbcType=TIMESTAMP},
</if>
<if test="checkUser != null">
#{checkUser,jdbcType=VARCHAR},
</if>
<if test="checkUserName != null">
#{checkUserName,jdbcType=VARCHAR},
</if>
<if test="checkTime != null">
#{checkTime,jdbcType=TIMESTAMP},
</if>
<if test="checkSuggestion != null">
#{checkSuggestion,jdbcType=VARCHAR},
</if>
<if test="createdBy != null">
#{createdBy,jdbcType=VARCHAR},
</if>
<if test="createdTime != null">
#{createdTime,jdbcType=TIMESTAMP},
</if>
<if test="updatedBy != null">
#{updatedBy,jdbcType=VARCHAR},
</if>
<if test="updatedTime != null">
#{updatedTime,jdbcType=TIMESTAMP},
</if>
<if test="installOrder != null">
#{installOrder,jdbcType=VARCHAR},
</if>
<if test="specification != null">
#{specification,jdbcType=VARCHAR},
</if>
<if test="logisticOrder != null">
#{logisticOrder,jdbcType=VARCHAR},
</if>
<if test="applyInventory != null">
#{applyInventory,jdbcType=VARCHAR},
</if>
<if test="applyOrder != null">
#{applyOrder,jdbcType=VARCHAR},
</if>
<if test="warehouseId != null">
#{warehouseId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.starcharge.wios.dao.entity.TauxiliarymaterialsCriteria" resultType="java.lang.Long">
select count(*) from t_auxiliary_materials
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_auxiliary_materials
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.materialCode != null">
material_code = #{record.materialCode,jdbcType=VARCHAR},
</if>
<if test="record.materialName != null">
material_name = #{record.materialName,jdbcType=VARCHAR},
</if>
<if test="record.measurementUnit != null">
measurement_unit = #{record.measurementUnit,jdbcType=VARCHAR},
</if>
<if test="record.applyQuantity != null">
apply_quantity = #{record.applyQuantity,jdbcType=VARCHAR},
</if>
<if test="record.approvedQuantity != null">
approved_quantity = #{record.approvedQuantity,jdbcType=VARCHAR},
</if>
<if test="record.currentySap != null">
currenty_sap = #{record.currentySap,jdbcType=VARCHAR},
</if>
<if test="record.monthAmountSap != null">
month_amount_sap = #{record.monthAmountSap,jdbcType=VARCHAR},
</if>
<if test="record.yearAmount != null">
year_amount = #{record.yearAmount,jdbcType=VARCHAR},
</if>
<if test="record.applyStatus != null">
apply_status = #{record.applyStatus,jdbcType=VARCHAR},
</if>
<if test="record.team != null">
team = #{record.team,jdbcType=VARCHAR},
</if>
<if test="record.logisticStatus != null">
logistic_status = #{record.logisticStatus,jdbcType=VARCHAR},
</if>
<if test="record.receivingStatus != null">
receiving_status = #{record.receivingStatus,jdbcType=VARCHAR},
</if>
<if test="record.recipents != null">
recipents = #{record.recipents,jdbcType=VARCHAR},
</if>
<if test="record.receiveAddress != null">
receive_address = #{record.receiveAddress,jdbcType=VARCHAR},
</if>
<if test="record.receivePhone != null">
receive_phone = #{record.receivePhone,jdbcType=VARCHAR},
</if>
<if test="record.applyTime != null">
apply_time = #{record.applyTime,jdbcType=TIMESTAMP},
</if>
<if test="record.checkUser != null">
check_user = #{record.checkUser,jdbcType=VARCHAR},
</if>
<if test="record.checkUserName != null">
check_user_name = #{record.checkUserName,jdbcType=VARCHAR},
</if>
<if test="record.checkTime != null">
check_time = #{record.checkTime,jdbcType=TIMESTAMP},
</if>
<if test="record.checkSuggestion != null">
check_suggestion = #{record.checkSuggestion,jdbcType=VARCHAR},
</if>
<if test="record.createdBy != null">
CREATED_BY = #{record.createdBy,jdbcType=VARCHAR},
</if>
<if test="record.createdTime != null">
CREATED_TIME = #{record.createdTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updatedBy != null">
UPDATED_BY = #{record.updatedBy,jdbcType=VARCHAR},
</if>
<if test="record.updatedTime != null">
UPDATED_TIME = #{record.updatedTime,jdbcType=TIMESTAMP},
</if>
<if test="record.installOrder != null">
install_order = #{record.installOrder,jdbcType=VARCHAR},
</if>
<if test="record.specification != null">
specification = #{record.specification,jdbcType=VARCHAR},
</if>
<if test="record.logisticOrder != null">
logistic_order = #{record.logisticOrder,jdbcType=VARCHAR},
</if>
<if test="record.applyInventory != null">
apply_inventory = #{record.applyInventory,jdbcType=VARCHAR},
</if>
<if test="record.applyOrder != null">
apply_order = #{record.applyOrder,jdbcType=VARCHAR},
</if>
<if test="record.warehouseId != null">
warehouse_id = #{record.warehouseId,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_auxiliary_materials
set id = #{record.id,jdbcType=INTEGER},
material_code = #{record.materialCode,jdbcType=VARCHAR},
material_name = #{record.materialName,jdbcType=VARCHAR},
measurement_unit = #{record.measurementUnit,jdbcType=VARCHAR},
apply_quantity = #{record.applyQuantity,jdbcType=VARCHAR},
approved_quantity = #{record.approvedQuantity,jdbcType=VARCHAR},
currenty_sap = #{record.currentySap,jdbcType=VARCHAR},
month_amount_sap = #{record.monthAmountSap,jdbcType=VARCHAR},
year_amount = #{record.yearAmount,jdbcType=VARCHAR},
apply_status = #{record.applyStatus,jdbcType=VARCHAR},
team = #{record.team,jdbcType=VARCHAR},
logistic_status = #{record.logisticStatus,jdbcType=VARCHAR},
receiving_status = #{record.receivingStatus,jdbcType=VARCHAR},
recipents = #{record.recipents,jdbcType=VARCHAR},
receive_address = #{record.receiveAddress,jdbcType=VARCHAR},
receive_phone = #{record.receivePhone,jdbcType=VARCHAR},
apply_time = #{record.applyTime,jdbcType=TIMESTAMP},
check_user = #{record.checkUser,jdbcType=VARCHAR},
check_user_name = #{record.checkUserName,jdbcType=VARCHAR},
check_time = #{record.checkTime,jdbcType=TIMESTAMP},
check_suggestion = #{record.checkSuggestion,jdbcType=VARCHAR},
CREATED_BY = #{record.createdBy,jdbcType=VARCHAR},
CREATED_TIME = #{record.createdTime,jdbcType=TIMESTAMP},
UPDATED_BY = #{record.updatedBy,jdbcType=VARCHAR},
UPDATED_TIME = #{record.updatedTime,jdbcType=TIMESTAMP},
install_order = #{record.installOrder,jdbcType=VARCHAR},
specification = #{record.specification,jdbcType=VARCHAR},
logistic_order = #{record.logisticOrder,jdbcType=VARCHAR},
apply_inventory = #{record.applyInventory,jdbcType=VARCHAR},
apply_order = #{record.applyOrder,jdbcType=VARCHAR},
warehouse_id = #{record.warehouseId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.starcharge.wios.dao.entity.Tauxiliarymaterials">
update t_auxiliary_materials
<set>
<if test="materialCode != null">
material_code = #{materialCode,jdbcType=VARCHAR},
</if>
<if test="materialName != null">
material_name = #{materialName,jdbcType=VARCHAR},
</if>
<if test="measurementUnit != null">
measurement_unit = #{measurementUnit,jdbcType=VARCHAR},
</if>
<if test="applyQuantity != null">
apply_quantity = #{applyQuantity,jdbcType=VARCHAR},
</if>
<if test="approvedQuantity != null">
approved_quantity = #{approvedQuantity,jdbcType=VARCHAR},
</if>
<if test="currentySap != null">
currenty_sap = #{currentySap,jdbcType=VARCHAR},
</if>
<if test="monthAmountSap != null">
month_amount_sap = #{monthAmountSap,jdbcType=VARCHAR},
</if>
<if test="yearAmount != null">
year_amount = #{yearAmount,jdbcType=VARCHAR},
</if>
<if test="applyStatus != null">
apply_status = #{applyStatus,jdbcType=VARCHAR},
</if>
<if test="team != null">
team = #{team,jdbcType=VARCHAR},
</if>
<if test="logisticStatus != null">
logistic_status = #{logisticStatus,jdbcType=VARCHAR},
</if>
<if test="receivingStatus != null">
receiving_status = #{receivingStatus,jdbcType=VARCHAR},
</if>
<if test="recipents != null">
recipents = #{recipents,jdbcType=VARCHAR},
</if>
<if test="receiveAddress != null">
receive_address = #{receiveAddress,jdbcType=VARCHAR},
</if>
<if test="receivePhone != null">
receive_phone = #{receivePhone,jdbcType=VARCHAR},
</if>
<if test="applyTime != null">
apply_time = #{applyTime,jdbcType=TIMESTAMP},
</if>
<if test="checkUser != null">
check_user = #{checkUser,jdbcType=VARCHAR},
</if>
<if test="checkUserName != null">
check_user_name = #{checkUserName,jdbcType=VARCHAR},
</if>
<if test="checkTime != null">
check_time = #{checkTime,jdbcType=TIMESTAMP},
</if>
<if test="checkSuggestion != null">
check_suggestion = #{checkSuggestion,jdbcType=VARCHAR},
</if>
<if test="createdBy != null">
CREATED_BY = #{createdBy,jdbcType=VARCHAR},
</if>
<if test="createdTime != null">
CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP},
</if>
<if test="updatedBy != null">
UPDATED_BY = #{updatedBy,jdbcType=VARCHAR},
</if>
<if test="updatedTime != null">
UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP},
</if>
<if test="installOrder != null">
install_order = #{installOrder,jdbcType=VARCHAR},
</if>
<if test="specification != null">
specification = #{specification,jdbcType=VARCHAR},
</if>
<if test="logisticOrder != null">
logistic_order = #{logisticOrder,jdbcType=VARCHAR},
</if>
<if test="applyInventory != null">
apply_inventory = #{applyInventory,jdbcType=VARCHAR},
</if>
<if test="applyOrder != null">
apply_order = #{applyOrder,jdbcType=VARCHAR},
</if>
<if test="warehouseId != null">
warehouse_id = #{warehouseId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.starcharge.wios.dao.entity.Tauxiliarymaterials">
update t_auxiliary_materials
set material_code = #{materialCode,jdbcType=VARCHAR},
material_name = #{materialName,jdbcType=VARCHAR},
measurement_unit = #{measurementUnit,jdbcType=VARCHAR},
apply_quantity = #{applyQuantity,jdbcType=VARCHAR},
approved_quantity = #{approvedQuantity,jdbcType=VARCHAR},
currenty_sap = #{currentySap,jdbcType=VARCHAR},
month_amount_sap = #{monthAmountSap,jdbcType=VARCHAR},
year_amount = #{yearAmount,jdbcType=VARCHAR},
apply_status = #{applyStatus,jdbcType=VARCHAR},
team = #{team,jdbcType=VARCHAR},
logistic_status = #{logisticStatus,jdbcType=VARCHAR},
receiving_status = #{receivingStatus,jdbcType=VARCHAR},
recipents = #{recipents,jdbcType=VARCHAR},
receive_address = #{receiveAddress,jdbcType=VARCHAR},
receive_phone = #{receivePhone,jdbcType=VARCHAR},
apply_time = #{applyTime,jdbcType=TIMESTAMP},
check_user = #{checkUser,jdbcType=VARCHAR},
check_user_name = #{checkUserName,jdbcType=VARCHAR},
check_time = #{checkTime,jdbcType=TIMESTAMP},
check_suggestion = #{checkSuggestion,jdbcType=VARCHAR},
CREATED_BY = #{createdBy,jdbcType=VARCHAR},
CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP},
UPDATED_BY = #{updatedBy,jdbcType=VARCHAR},
UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP},
install_order = #{installOrder,jdbcType=VARCHAR},
specification = #{specification,jdbcType=VARCHAR},
logistic_order = #{logisticOrder,jdbcType=VARCHAR},
apply_inventory = #{applyInventory,jdbcType=VARCHAR},
apply_order = #{applyOrder,jdbcType=VARCHAR},
warehouse_id = #{warehouseId,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<sql id="selectTAuxiliaryMaterialsVo">
select id, material_code, material_name, measurement_unit, apply_quantity, approved_quantity, currenty_sap, month_amount_sap, year_amount, apply_status, team, logistic_status, receiving_status, recipents, receive_address, receive_phone, apply_time, check_user, check_user_name, check_time, check_suggestion, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, install_order, specification, logistic_order, apply_inventory, apply_order from t_auxiliary_materials
</sql>
<select id="selectTAuxiliaryMaterialsList" parameterType="com.starcharge.wios.dao.entity.Tauxiliarymaterials" resultMap="BaseResultMap">
<include refid="selectTAuxiliaryMaterialsVo"/>
<where>
<if test="materialCode != null and materialCode != ''"> and material_code like concat('%', #{materialCode}, '%')</if>
<if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if>
<if test="measurementUnit != null and measurementUnit != ''"> and measurement_unit = #{measurementUnit}</if>
<if test="applyQuantity != null and applyQuantity != ''"> and apply_quantity = #{applyQuantity}</if>
<if test="approvedQuantity != null and approvedQuantity != ''"> and approved_quantity = #{approvedQuantity}</if>
<if test="currentySap != null and currentySap != ''"> and currenty_sap = #{currentySap}</if>
<if test="monthAmountSap != null and monthAmountSap != ''"> and month_amount_sap = #{monthAmountSap}</if>
<if test="yearAmount != null and yearAmount != ''"> and year_amount = #{yearAmount}</if>
<if test="applyStatus != null and applyStatus != ''"> and apply_status = #{applyStatus}</if>
<if test="team != null and team != ''"> and team like concat('%', #{team}, '%')</if>
<if test="logisticStatus != null and logisticStatus != ''"> and logistic_status = #{logisticStatus}</if>
<if test="receivingStatus != null and receivingStatus != ''"> and receiving_status = #{receivingStatus}</if>
<if test="recipents != null and recipents != ''"> and recipents = #{recipents}</if>
<if test="receiveAddress != null and receiveAddress != ''"> and receive_address = #{receiveAddress}</if>
<if test="receivePhone != null and receivePhone != ''"> and receive_phone = #{receivePhone}</if>
<if test="applyTime != null "> and apply_time = #{applyTime}</if>
<if test="checkUser != null and checkUser != ''"> and check_user = #{checkUser}</if>
<if test="checkUserName != null and checkUserName != ''"> and check_user_name like concat('%', #{checkUserName}, '%')</if>
<if test="checkTime != null "> and check_time = #{checkTime}</if>
<if test="checkSuggestion != null and checkSuggestion != ''"> and check_suggestion = #{checkSuggestion}</if>
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if>
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if>
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if>
<if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</if>
<if test="installOrder != null and installOrder != ''"> and install_order = #{installOrder}</if>
<if test="specification != null and specification != ''"> and specification = #{specification}</if>
<if test="logisticOrder != null and logisticOrder != ''"> and logistic_order = #{logisticOrder}</if>
<if test="applyInventory != null and applyInventory != ''"> and apply_inventory = #{applyInventory}</if>
<if test="applyOrder != null and applyOrder != ''"> and apply_order = #{applyOrder}</if>
</where>
</select>
</mapper>
\ No newline at end of file
package com.starcharge.wios.dao.mappers;
import com.starcharge.wios.dao.entity.WallboxApply;
import com.starcharge.wios.dto.WallboxApplyDetailQueryDTO;
import com.starcharge.wios.vo.WallboxApplyDetailVO;
import com.starcharge.wios.vo.WallboxApplyInstallInfoVO;
import com.starcharge.wios.vo.WallboxApplyInstallListVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import java.util.List;
/**
* <p>
* 墙盒申请Mapper接口
* <p>
*
* @author <a href="mail to: ning.chai@foxmail.com" rel="nofollow">chaining</a>
*/
public interface WallboxApplyMapper {
/**
* 查询墙盒申请
*
* @param id 墙盒申请主键
* @return 墙盒申请
*/
public WallboxApplyInstallInfoVO selectWallboxApplyById(Long id);
/**
* 墙盒状态
*/
WallboxApplyDetailVO selectWallboxDetail(WallboxApplyDetailQueryDTO query);
/**
* 查询墙盒申请
*
* @param id Order id
* @return 墙盒申请
*/
WallboxApply selectWallboxApplyByOrderId(String id);
/**
* 查询墙盒申请列表
*
* @return 墙盒申请集合
*/
public List<WallboxApply> selectWallboxApplyList(WallboxApply WallboxApply);
public List<WallboxApplyInstallListVO> selectWallboxApplyListFromOrder(WallboxApply WallboxApply);
/**
* 新增墙盒申请
*
* @param tWallboxApply 墙盒申请
* @return 结果
*/
public int insertWallboxApply(WallboxApply WallboxApply);
/**
* 修改墙盒申请
*
* @param tWallboxApply 墙盒申请
* @return 结果
*/
public int updateWallboxApply(WallboxApply WallboxApply);
void batchUpdateWallboxApply(List<WallboxApply> list);
/**
* 删除墙盒申请
*
* @param id 墙盒申请主键
* @return 结果
*/
public int deleteWallboxApplyById(Long id);
/**
* 批量删除墙盒申请
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWallboxApplyByIds(Long[] ids);
/**
* 通过物料编码更新发货状态
* @param trackingStatus
* @param wallboxItemId
* @return
*/
@Update("update t_wallbox_apply set tracking_status=#{trackingStatus} where wallbox_item_id=#{wallboxItemId}")
public int updateWallBoxTrackingStatusByMC(@Param("trackingStatus")String trackingStatus,@Param("wallboxItemId")String wallboxItemId);
}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.starcharge.wios.dao.mappers.WallboxApplyMapper">
<resultMap type="com.starcharge.wios.dao.entity.WallboxApply" id="WallboxApplyResult">
<result property="id" column="id"/>
<result property="orderId" column="order_id"/>
<result property="supplierId" column="supplier_id"/>
<result property="supplierTeam" column="supplier_team"/>
<result property="wallboxItemId" column="wallbox_item_id"/>
<result property="wallboxModel" column="wallbox_model"/>
<result property="materialType" column="material_type"/>
<result property="trackingNumber" column="tracking_number"/>
<result property="trackingStatus" column="tracking_status"/>
<result property="installStatus" column="install_status"/>
<result property="regionId" column="region_id"/>
<result property="address" column="address"/>
<result property="outOrderId" column="out_order_id"/>
<result property="ifEmergency" column="if_emergency"/>
<result property="ifTimeout" column="if_timeout"/>
<result property="checkAccount" column="check_account"/>
<result property="checkStatus" column="check_status"/>
<result property="checkRemarks" column="check_remarks"/>
<result property="checkTime" column="check_time"/>
<result property="installReserveTime" column="install_reserve_time"/>
<result property="installProcess" column="install_process"/>
<result property="createAccount" column="create_account"/>
<result property="createdTime" column="created_time"/>
<result property="modifyAccount" column="modify_account"/>
<result property="modifyTime" column="modify_time"/>
</resultMap>
<sql id="selectWallboxApplyVo">
select id,
order_id,
supplier_id,
supplier_team,
wallbox_item_id,
wallbox_model,
material_type,
tracking_number,
tracking_status,
install_status,
region_id,
address,
out_order_id,
if_emergency,
if_timeout,
check_account,
check_status,
check_remarks,
check_time,
install_reserve_time,
install_process,
create_account,
created_time,
modify_account,
modify_time
from t_wallbox_apply
</sql>
<select id="selectWallboxApplyList" parameterType="com.starcharge.wios.dao.entity.WallboxApply"
resultMap="WallboxApplyResult">
<include refid="selectWallboxApplyVo"/>
<where>
<if test="orderId != null and orderId != ''">and order_id = #{orderId}</if>
<if test="supplierId != null ">and supplier_id = #{supplierId}</if>
<if test="supplierTeam != null and supplierTeam != ''">and supplier_team like concat('%', #{supplierTeam},
'%')
</if>
<if test="wallboxItemId != null and wallboxItemId != ''">and wallbox_item_id = #{wallboxItemId}</if>
<if test="wallboxModel != null and wallboxModel != ''">and wallbox_model = #{wallboxModel}</if>
<if test="materialType != null and materialType != ''">and material_type = #{materialType}</if>
<if test="trackingNumber != null and trackingNumber != ''">and tracking_number = #{trackingNumber}</if>
<if test="trackingStatus != null and trackingStatus != ''">and tracking_status = #{trackingStatus}</if>
<if test="installStatus != null and installStatus != ''">and install_status = #{installStatus}</if>
<if test="regionId != null and regionId != ''">and region_id = #{regionId}</if>
<if test="address != null and address != ''">and address = #{address}</if>
<if test="outOrderId != null and outOrderId != ''">and out_order_id = #{outOrderId}</if>
<if test="ifEmergency != null ">and if_emergency = #{ifEmergency}</if>
<if test="ifTimeout != null ">and if_timeout = #{ifTimeout}</if>
<if test="checkAccount != null and checkAccount != ''">and check_account = #{checkAccount}</if>
<if test="checkStatus != null ">and check_status = #{checkStatus}</if>
<if test="checkRemarks != null and checkRemarks != ''">and check_remarks = #{checkRemarks}</if>
<if test="checkTime != null ">and check_time = #{checkTime}</if>
<if test="installReserveTime != null ">and install_reserve_time = #{installReserveTime}</if>
<if test="installProcess != null ">and install_process = #{installProcess}</if>
<if test="createAccount != null and createAccount != ''">and create_account = #{createAccount}</if>
<if test="createdTime != null ">and created_time = #{createdTime}</if>
<if test="modifyAccount != null and modifyAccount != ''">and modify_account = #{modifyAccount}</if>
<if test="modifyTime != null ">and modify_time = #{modifyTime}</if>
</where>
</select>
<select id="selectWallboxApplyListFromOrder" parameterType="com.starcharge.wios.vo.WallboxApplyReqVO"
resultType="com.starcharge.wios.vo.WallboxApplyInstallListVO">
SELECT t_wallbox_apply.id,
t_wallbox_apply.order_id,
t_wallbox_apply.supplier_id,
t_wallbox_apply.supplier_team,
t_wallbox_apply.wallbox_item_id,
t_wallbox_apply.wallbox_model,
t_wallbox_apply.material_type,
t_wallbox_apply.tracking_status,
t_order.region_id,
reg.name as region_name,
t_order.address,
t_wallbox_apply.out_order_id,
t_wallbox_apply.if_emergency,
t_wallbox_apply.if_timeout,
t_wallbox_apply.check_account,
t_wallbox_apply.check_status,
t_wallbox_apply.check_remarks,
t_wallbox_apply.check_time,
t_wallbox_apply.install_reserve_time,
t_wallbox_apply.install_process,
t_wallbox_apply.create_account,
t_wallbox_apply.created_time,
t_wallbox_apply.modify_account,
t_wallbox_apply.modify_time,
t_order.shipno as tracking_number,
t_order.status as install_status
FROM t_wallbox_apply
LEFT JOIN t_order ON t_wallbox_apply.order_id = t_order.id
left join t_region reg on reg.id=t_wallbox_apply.region_id
<where>
<if test="supplierTeam != null and supplierTeam != ''">and t_wallbox_apply.supplier_team like concat('%',
#{supplierTeam},
'%')
</if>
<if test="checkStatus != null ">and t_wallbox_apply.check_status = #{checkStatus}</if>
<if test="trackingStatus != null ">and t_wallbox_apply.tracking_status = #{trackingStatus}</if>
<if test="regionId != null and regionId != ''">and t_wallbox_apply.region_id = #{regionId}</if>
<if test="wallboxItemId != null and wallboxItemId != ''">and t_wallbox_apply.wallbox_item_id like
concat('%', #{wallboxItemId}, '%')
</if>
</where>
</select>
<select id="selectWallboxApplyById" parameterType="Long" resultType="com.starcharge.wios.vo.WallboxApplyInstallInfoVO">
SELECT t_wallbox_apply.id,
t_wallbox_apply.order_id,
t_wallbox_apply.supplier_id,
t_wallbox_apply.supplier_team,
t_order.wallbox_model,
t_order.item_model as material_type,
t_wallbox_apply.tracking_status,
t_order.region_id,
reg.name as region_name,
t_order.install_reserve_time,
t_order.address,
t_order.out_order_id,
t_wallbox_apply.if_emergency,
t_wallbox_apply.if_timeout,
t_wallbox_apply.check_account,
wb_account.name as check_name,
t_wallbox_apply.check_status,
t_wallbox_apply.check_remarks,
t_wallbox_apply.check_time,
t_order.install_reserve_time,
t_wallbox_apply.create_account,
t_wallbox_apply.created_time,
t_wallbox_apply.modify_account,
t_wallbox_apply.modify_time,
t_order.shipno as tracking_number,
t_order.status as install_status
FROM t_wallbox_apply
LEFT JOIN t_order ON t_wallbox_apply.order_id = t_order.id
left join t_region reg on reg.id = t_wallbox_apply.region_id
left join wb_account on wb_account.id = t_wallbox_apply.check_account
where t_wallbox_apply.id = #{id}
</select>
<select id="selectWallboxDetail" parameterType="com.starcharge.wios.dto.WallboxApplyDetailQueryDTO"
resultType="com.starcharge.wios.vo.WallboxApplyDetailVO">
SELECT t_wallbox_apply.id,
t_wallbox_apply.order_id,
t_wallbox_apply.supplier_team,
t_wallbox_apply.tracking_status,
t_wallbox_apply.tracking_number,
t_wallbox_apply.supplier_id,
t_wallbox_apply.wallbox_item_id as wallbox_code,
t_order.user_name,
t_order.user_phone,
t_order.wallbox_model,
t_order.item_model,
t_wallbox_apply.if_emergency,
t_wallbox_apply.if_timeout,
t_wallbox_apply.check_account,
t_wallbox_apply.check_status,
t_wallbox_apply.check_remarks,
t_wallbox_apply.check_time,
t_wallbox_apply.create_account,
t_wallbox_apply.created_time,
t_wallbox_apply.modify_account,
t_wallbox_apply.modify_time
FROM t_order
LEFT JOIN t_wallbox_apply ON t_wallbox_apply.order_id = t_order.id
where t_wallbox_apply.order_id = #{orderId}
and t_wallbox_apply.supplier_id = #{supplierId}
</select>
<select id="selectWallboxApplyByOrderId" parameterType="String" resultMap="WallboxApplyResult">
<include refid="selectWallboxApplyVo"/>
where order_id = #{id}
</select>
<insert id="insertWallboxApply" parameterType="com.starcharge.wios.dao.entity.WallboxApply" useGeneratedKeys="true"
keyProperty="id">
insert into t_wallbox_apply
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderId != null and orderId != ''">order_id,</if>
<if test="supplierId != null">supplier_id,</if>
<if test="supplierTeam != null">supplier_team,</if>
<if test="wallboxItemId != null and wallboxItemId != ''">wallbox_item_id,</if>
<if test="wallboxModel != null">wallbox_model,</if>
<if test="materialType != null">material_type,</if>
<if test="trackingNumber != null">tracking_number,</if>
<if test="trackingStatus != null">tracking_status,</if>
<if test="installStatus != null">install_status,</if>
<if test="regionId != null">region_id,</if>
<if test="address != null">address,</if>
<if test="outOrderId != null">out_order_id,</if>
<if test="ifEmergency != null">if_emergency,</if>
<if test="ifTimeout != null">if_timeout,</if>
<if test="checkAccount != null">check_account,</if>
<if test="checkStatus != null">check_status,</if>
<if test="checkRemarks != null">check_remarks,</if>
<if test="checkTime != null">check_time,</if>
<if test="installReserveTime != null">install_reserve_time,</if>
<if test="installProcess != null">install_process,</if>
<if test="createAccount != null">create_account,</if>
<if test="createdTime != null">created_time,</if>
<if test="modifyAccount != null">modify_account,</if>
<if test="modifyTime != null">modify_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderId != null and orderId != ''">#{orderId},</if>
<if test="supplierId != null">#{supplierId},</if>
<if test="supplierTeam != null">#{supplierTeam},</if>
<if test="wallboxItemId != null and wallboxItemId != ''">#{wallboxItemId},</if>
<if test="wallboxModel != null">#{wallboxModel},</if>
<if test="materialType != null">#{materialType},</if>
<if test="trackingNumber != null">#{trackingNumber},</if>
<if test="trackingStatus != null">#{trackingStatus},</if>
<if test="installStatus != null">#{installStatus},</if>
<if test="regionId != null">#{regionId},</if>
<if test="address != null">#{address},</if>
<if test="outOrderId != null">#{outOrderId},</if>
<if test="ifEmergency != null">#{ifEmergency},</if>
<if test="ifTimeout != null">#{ifTimeout},</if>
<if test="checkAccount != null">#{checkAccount},</if>
<if test="checkStatus != null">#{checkStatus},</if>
<if test="checkRemarks != null">#{checkRemarks},</if>
<if test="checkTime != null">#{checkTime},</if>
<if test="installReserveTime != null">#{installReserveTime},</if>
<if test="installProcess != null">#{installProcess},</if>
<if test="createAccount != null">#{createAccount},</if>
<if test="createdTime != null">#{createdTime},</if>
<if test="modifyAccount != null">#{modifyAccount},</if>
<if test="modifyTime != null">#{modifyTime},</if>
</trim>
</insert>
<update id="updateWallboxApply" parameterType="com.starcharge.wios.dao.entity.WallboxApply">
update t_wallbox_apply
<trim prefix="SET" suffixOverrides=",">
<if test="orderId != null and orderId != ''">order_id = #{orderId},</if>
<if test="supplierId != null">supplier_id = #{supplierId},</if>
<if test="supplierTeam != null">supplier_team = #{supplierTeam},</if>
<if test="wallboxItemId != null and wallboxItemId != ''">wallbox_item_id = #{wallboxItemId},</if>
<if test="wallboxModel != null">wallbox_model = #{wallboxModel},</if>
<if test="materialType != null">material_type = #{materialType},</if>
<if test="trackingNumber != null">tracking_number = #{trackingNumber},</if>
<if test="trackingStatus != null">tracking_status = #{trackingStatus},</if>
<if test="installStatus != null">install_status = #{installStatus},</if>
<if test="regionId != null">region_id = #{regionId},</if>
<if test="address != null">address = #{address},</if>
<if test="outOrderId != null">out_order_id = #{outOrderId},</if>
<if test="ifEmergency != null">if_emergency = #{ifEmergency},</if>
<if test="ifTimeout != null">if_timeout = #{ifTimeout},</if>
<if test="checkAccount != null">check_account = #{checkAccount},</if>
<if test="checkStatus != null">check_status = #{checkStatus},</if>
<if test="checkRemarks != null">check_remarks = #{checkRemarks},</if>
<if test="checkTime != null">check_time = #{checkTime},</if>
<if test="installReserveTime != null">install_reserve_time = #{installReserveTime},</if>
<if test="installProcess != null">install_process = #{installProcess},</if>
<if test="createAccount != null">create_account = #{createAccount},</if>
<if test="createdTime != null">created_time = #{createdTime},</if>
<if test="modifyAccount != null">modify_account = #{modifyAccount},</if>
<if test="modifyTime != null">modify_time = #{modifyTime},</if>
</trim>
where id = #{id}
</update>
<!-- 批量更新 WallboxApply -->
<update id="batchUpdateWallboxApply" parameterType="java.util.List">
<foreach collection="list" item="item" index="index" separator=";">
UPDATE t_wallbox_apply
SET check_status = #{item.checkStatus},
check_remarks = #{item.checkRemarks},
modify_account = #{item.modifyAccount},
modify_time = CURRENT_TIMESTAMP
WHERE id = #{item.id}
</foreach>
</update>
<delete id="deleteWallboxApplyById" parameterType="Long">
delete
from t_wallbox_apply
where id = #{id}
</delete>
<delete id="deleteWallboxApplyByIds" parameterType="String">
delete from t_wallbox_apply where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
package com.starcharge.wios.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.dto
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/9/2610:40
*/
@Data
public class TauxiliarymaterialsCheckDto {
/**
* 审核意见
*
* @mbg.generated
*/
@ApiModelProperty(value = "审核意见")
private String checkSuggestion;
/**
* 申请状态 已申请 已驳回 已通过 已关闭
*
* @mbg.generated
*/
@ApiModelProperty(value = "审核状态 已驳回 已通过 已关闭")
private String applyStatus;
private List<TauxiliarymaterialsCheckVo> tauxiliarymaterialsCheckVoList;
@Data
public static class TauxiliarymaterialsCheckVo{
/**
* id
*
* @mbg.generated
*/
@ApiModelProperty(required = true,value = "id")
private Integer id;
/**
* 批准数量
*
* @mbg.generated
*/
@ApiModelProperty(value = "批准数量")
private String approvedQuantity;
}
}
package com.starcharge.wios.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* <p>
* 墙盒申请批量审核
* <p>
*
* @author <a href="mail to: ning.chai@foxmail.com" rel="nofollow">chaining</a>
*/
@Data
public class WallboxApplyBatchCheckDTO {
List<WallboxApplyCheckDTO> checkList;
/** 申请状态:0:已申请,1:已通过,2:已驳回,3:已关闭 */
@ApiModelProperty(value = "申请状态", notes = "1:通过,2:驳回", example = "1", required = true)
private Long checkStatus;
@ApiModelProperty(value = "审核备注",required = true)
private String checkRemarks;
}
package com.starcharge.wios.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* <p>
* 墙盒申请批量审核DTO
* <p>
*
* @author <a href="mail to: ning.chai@foxmail.com" rel="nofollow">chaining</a>
*/
@Data
public class WallboxApplyCheckDTO {
/** 自增id */
private Long id;
/** 安装订单号 */
@ApiModelProperty(value = "安装订单号")
private String orderId;
@ApiModelProperty(value = "安装状态")
private String installStatus;
/** 安装服务商id */
@ApiModelProperty(value = "安装服务商id")
private String supplierId;
/** 申请团队名称 */
@ApiModelProperty(value = "申请团队名称")
private String supplierTeam;
/** 墙盒品牌*/
@ApiModelProperty(value = "墙盒品牌")
private String wallboxModel;
/** 区域id */
@ApiModelProperty(value = "区域id")
private String regionId;
/** 区域id */
@ApiModelProperty(value = "地址")
private String address;
/** 是否紧急:0:否,1:是 */
@ApiModelProperty(value = "是否特殊申请")
private Integer ifEmergency;
/** 申请状态:0:已申请,1:已通过,2:已驳回,3:已关闭 */
@ApiModelProperty(value = "审核状态")
private Long checkStatus;
/**
* 数据状态
*/
private String dataStatus;
/**
* 数据异常信息
*/
private String errorMessage;
}
package com.starcharge.wios.dto;
import lombok.Data;
/**
* <p>
* 墙盒申请状态查询参数
* <p>
*
* @author <a href="mail to: ning.chai@foxmail.com" rel="nofollow">chaining</a>
*/
@Data
public class WallboxApplyDetailQueryDTO {
private String orderId;
private String supplierId;
}
package com.starcharge.wios.enums2;
import org.springframework.util.StringUtils;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.enums
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/9/2515:49
*/
public enum TauxiliarymaterialStatusEnum {
已申请(0,1),已驳回(0,2),已通过(0,3),已关闭(0,4),
未发货(1,1),已发货(1,1),
未收货(2,1), 已收货(2,1);
private int statusType;
private int value;
TauxiliarymaterialStatusEnum(int statusType, int value){
this.value=value;
this.statusType = statusType;
}
public static List<TauxiliarymaterialStatusEnum> getStatusTypeEnums(int statusType) {
TauxiliarymaterialStatusEnum[] values = TauxiliarymaterialStatusEnum.values();
return Arrays.asList(values).stream().filter(v->v.getStatusType() == statusType).collect(Collectors.toList());
}
public static TauxiliarymaterialStatusEnum getEnumsByValue(int statusType,int value) {
TauxiliarymaterialStatusEnum[] values = TauxiliarymaterialStatusEnum.values();
return Arrays.asList(values).stream().filter(v->v.getStatusType() == statusType&&v.getValue()==value).findFirst().orElse(null);
}
public static String getEnumNameByName(int statusType,String name) {
if(StringUtils.hasLength(name)){
TauxiliarymaterialStatusEnum[] values = TauxiliarymaterialStatusEnum.values();
TauxiliarymaterialStatusEnum target= Arrays.asList(values).stream().filter(v->v.getStatusType() == statusType&&v.name().equals(name)).findFirst().orElse(null);
if(target!=null){
return target.name();
}
}
return null;
}
public static TauxiliarymaterialStatusEnum getEnumByName(int statusType,String name) {
if(StringUtils.hasLength(name)){
TauxiliarymaterialStatusEnum[] values = TauxiliarymaterialStatusEnum.values();
TauxiliarymaterialStatusEnum target= Arrays.asList(values).stream().filter(v->v.getStatusType() == statusType&&v.name().equals(name)).findFirst().orElse(null);
if(target!=null){
return target;
}
}
return null;
}
public int getStatusType() {
return this.statusType;
}
public int getValue() {
return value;
}
}
package com.starcharge.wios.service;
import com.ihidea.core.support.session.SessionInfo;
import com.starcharge.wios.auth.service.TokenService;
import lombok.var;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.lang.reflect.Field;
import java.time.LocalDateTime;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.service
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/814:26
*/
@Service
public class CommonUpdateService {
@Autowired
private TokenService tokenService;
public static final String CREATEDBY="createdBy";
public static final String CREATEDTIME="createdTime";
public static final String UPDATEDBY="updatedBy";
public static final String UPDATEDTIME="updatedTime";
public void UpdateColumns(Object entity,boolean isCreate){
SessionInfo sessionInfo = tokenService.getUser();
if(sessionInfo==null){
return;
}
try {
var now=LocalDateTime.now();
if(isCreate){
Field createdby=entity.getClass().getDeclaredField(CREATEDBY);
if(createdby!=null){
createdby.setAccessible(true);
createdby.set(entity,sessionInfo.getUserId());
}
Field createdtime=entity.getClass().getDeclaredField(CREATEDTIME);
if(createdtime!=null){
createdtime.setAccessible(true);
createdtime.set(entity,now);
}
}
Field updatedby=entity.getClass().getDeclaredField(UPDATEDBY);
if(updatedby!=null){
updatedby.setAccessible(true);
updatedby.set(entity,sessionInfo.getUserId());
}
Field updatedtime=entity.getClass().getDeclaredField(UPDATEDTIME);
if(updatedtime!=null){
updatedtime.setAccessible(true);
updatedtime.set(entity,now);
}
} catch (NoSuchFieldException e) {
return;
} catch (IllegalAccessException e) {
return;
}
}
}
package com.starcharge.wios.service;
import org.springframework.stereotype.Service;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.utils
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/815:57
*/
@Service
public class SnowFlakeService {
// 初始时间戳(纪年),可用雪花算法服务上线时间戳的值
// 1650789964886:2022-04-24 16:45:59
private static final long INIT_EPOCH = 1650789964886L;
// 记录最后使用的毫秒时间戳,主要用于判断是否同一毫秒,以及用于服务器时钟回拨判断
private long lastTimeMillis = -1L;
// 最后12位,代表每毫秒内可产生最大序列号,即 2^12 - 1 = 4095
private static final long SEQUENCE_BITS = 12L;
// 掩码(最低12位为1,高位都为0),主要用于与自增后的序列号进行位与,如果值为0,则代表自增后的序列号超过了4095
// 0000000000000000000000000000000000000000000000000000111111111111
private static final long SEQUENCE_MASK = ~(-1L << SEQUENCE_BITS);
// 同一毫秒内的最新序号,最大值可为 2^12 - 1 = 4095
private long sequence;
/**
* 通过该方法生成分布式ID
* 整个算法的流程:
* 1.先获取当前时间戳到毫秒。
* 2.当前时间戳-INIT_EPOCH时间(防止41位空间浪费)
* 3.查看当前日期是否同一毫秒。是统一毫秒直接相加。不是同一毫秒的话直接新增。
* 4.如果当前时间戳内生成的ID超过了4095,那么可以循环阻塞等待下一1毫秒在生成。
* 5.如果服务器时间出现问题,回退了,这抛出异常。(时间回拨的问题)
* @param dataCenterId 机器中心ID
* @param workerId 服务器ID
* @return
*/
public synchronized long getNextId(long dataCenterId, long workerId) {
// 获取当前毫秒
long currentTimeMillis = System.currentTimeMillis();
// 5.如果服务器时间出现问题,回退了,这抛出异常。(时间回拨的问题)
if (currentTimeMillis < lastTimeMillis) {
throw new RuntimeException(
String.format("可能出现服务器时钟回拨问题,请检查服务器时间。当前服务器时间戳:%d,上一次使用时间戳:%d", currentTimeMillis,
lastTimeMillis));
}
if (currentTimeMillis == lastTimeMillis) {
//4095+1 和 SEQUENCE_MASK & 得出的结果是0。
sequence = (sequence + 1) & SEQUENCE_MASK;
if (sequence == 0) {
//4.如果当前时间戳内生成的ID超过了4095,那么可以循环阻塞等待下一1毫秒在生成。
currentTimeMillis = getNextMillis(lastTimeMillis);
}
} else { // 不在同一毫秒内,则序列号重新从0开始,序列号最大值为4095
sequence = 0;
}
// 记录最后一次使用的毫秒时间戳
lastTimeMillis = currentTimeMillis;
// 时间戳部分,currentTimeMillis - INIT_EPOCH 和 因为什么要左移,具体原因可以看我的上一篇Redis生成ID中有详细的解释
return ((currentTimeMillis - INIT_EPOCH) << 22)
// 数据中心部分
| (dataCenterId << 17)
// 机器表示部分
| (workerId << 12)
// 序列号部分
| sequence;
}
/**
* 获取指定时间戳的接下来的时间戳,也可以说是下一毫秒
* @param lastTimeMillis 指定毫秒时间戳
* @return 时间戳
*/
private long getNextMillis(long lastTimeMillis) {
long currentTimeMillis = System.currentTimeMillis();
while (currentTimeMillis <= lastTimeMillis) {
currentTimeMillis = System.currentTimeMillis();
}
return currentTimeMillis;
}
}
package com.starcharge.wios.utils;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.List;
/**
* Excel 工具类
*
*/
public class ExcelUtils {
/**
* 将列表以 Excel 响应给前端
*
* @param response 响应
* @param filename 文件名
* @param sheetName Excel sheet 名
* @param head Excel head 头
* @param data 数据列表哦
* @param <T> 泛型,保证 head 和 data 类型的一致性
* @throws IOException 写入失败的情况
*/
public static <T> void write(HttpServletResponse response, String filename, String sheetName,
Class<T> head, List<T> data) throws IOException {
// 输出 Excel
EasyExcel.write(response.getOutputStream(), head)
.autoCloseStream(false) // 不要自动关闭,交给 Servlet 自己处理
.registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) // 基于 column 长度,自动适配。最大 255 宽度
.sheet(sheetName).doWrite(data);
// 设置 header 和 contentType。写在最后的原因是,避免报错时,响应 contentType 已经被修改了
response.addHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(filename, "UTF-8"));
response.setContentType("application/octet-stream;charset=ISO8859-1");
}
public static <T> List<T> read(MultipartFile file, Class<T> head) throws IOException {
return EasyExcel.read(file.getInputStream(), head, null)
.autoCloseStream(false) // 不要自动关闭,交给 Servlet 自己处理
.doReadAllSync();
}
}
package com.starcharge.wios.validation;
public interface CreateEntityGroup {
}
package com.starcharge.wios.validation;
import java.lang.annotation.*;
@Target(value = ElementType.METHOD)
@Retention(value = RetentionPolicy.RUNTIME)
@Documented
public @interface ParamsValidate {
}
package com.starcharge.wios.validation;
import com.alibaba.fastjson.JSON;
import com.ihidea.core.support.exception.ServiceException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.validation.BindingResult;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 类说明
*
* @author yincheng lu
* @time 2019年1月4日上午11:11:39
* @Description
*/
@Aspect
@Component
@Order(2)
public class ParamsValidation {
private static final Log logger = LogFactory.getLog(ParamsValidation.class);
public static final String FILE_SUFFIX = "_file";
@Pointcut("@annotation(com.starcharge.wios.validation.ParamsValidate)") // ||(execution(*
public static void paramsValidate() {
}
@Autowired
MessageSource messageSource;
@Before("paramsValidate()")
public void doBeforeInServiceLayer(JoinPoint joinPoint) {
}
@After("paramsValidate()")
public void doAfterInServiceLayer(JoinPoint joinPoint) {
}
public static final String BaseEntityPackage="com.starcharge.wios";
@Around("paramsValidate()")
public Object doAround(ProceedingJoinPoint pjp) throws Throwable {
logger.debug("start to validation params");
Map<String, String> resultMap = new HashMap<>();
Object[] arguments = pjp.getArgs();//实际参数
Method realMethod = getProceedJoinPointMethod(pjp);
Parameter[] parameters = realMethod.getParameters();//方法参数
List<BindingResult> brs = getClassFromArray(arguments, BindingResult.class);
if (brs != null && brs.size() > 0) {
brs.forEach(br -> {
if (br.hasErrors()) {
br.getFieldErrors().forEach(e -> {
resultMap.put(e.getField() + "", messageSource.getMessage(e, LocaleContextHolder.getLocale()));
});
br.getGlobalErrors().forEach(e -> {
resultMap.put(e.getObjectName() + "",
messageSource.getMessage(e, LocaleContextHolder.getLocale()));
});
}
});
}
if (resultMap.size() > 0) {
throw new ServiceException("400", "参数错误:"+ JSON.toJSONString(resultMap));
} else {
Object result = pjp.proceed();// result的值就是被拦截方法的返回值
return result;
}
}
public Method getProceedJoinPointMethod(ProceedingJoinPoint pjp)
throws NoSuchMethodException, SecurityException {
Method method = ((MethodSignature) pjp.getSignature()).getMethod();
Method realMethod = pjp.getTarget().getClass().getDeclaredMethod(method.getName(), method.getParameterTypes());
return realMethod;
}
public static <T> List<T> getClassFromArray(Object[] data,Class<T> object) {
List<T> result=new ArrayList<>();
for(int i=0;i<data.length;i++) {
if(object.isInstance(data[i])) {
result.add( (T) data[i]);
}
}
return result;
}
}
package com.starcharge.wios.validation;
public interface UpdateEntityGroup {
}
package com.starcharge.wios.vo;
import com.starcharge.wios.validation.CreateEntityGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.vo
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/818:13
*/
@Data
public class DeliveryAddVo {
/**
* 发货单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "发货单号")
private String deliveryOrder;
/**
* 安装单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "安装单号")
@NotNull(groups = CreateEntityGroup.class,message = "缺少安装单号")
@NotEmpty(groups = CreateEntityGroup.class,message = "缺少安装单号")
private String installOrder;
/**
* 产品批次
*
* @mbg.generated
*/
@ApiModelProperty(value = "产品批次",required = true)
@NotNull(groups = CreateEntityGroup.class,message = "缺少产品批次")
@NotEmpty(groups = CreateEntityGroup.class,message = "缺少产品批次")
private String productBatch;
/**
* 发货数量
*
* @mbg.generated
*/
@ApiModelProperty(value = "发货数量")
@Min(value = 1,groups = CreateEntityGroup.class,message = "发货数量必须大于0")
private Integer quantity;
/**
* 物料类别
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料类别",required = true)
@NotNull(groups = CreateEntityGroup.class,message = "缺少物料类别")
@NotEmpty(groups = CreateEntityGroup.class,message = "缺少物料类别")
private String materialCategory;
/**
* 物料编码
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料编码",required = true)
@NotNull(groups = CreateEntityGroup.class,message = "缺少物料编码")
@NotEmpty(groups = CreateEntityGroup.class,message = "缺少物料编码")
private String materialCode;
/**
* 物料名称
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料名称",required = true)
@NotNull(groups = CreateEntityGroup.class,message = "缺少物料名称")
@NotEmpty(groups = CreateEntityGroup.class,message = "缺少物料名称")
private String materialName;
/**
* 物料厂商
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料厂商",required = true)
@NotNull(groups = CreateEntityGroup.class,message = "缺少物料厂商")
@NotEmpty(groups = CreateEntityGroup.class,message = "缺少物料厂商")
private String materialCompany;
/**
* 物流单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "物流单号",required = true)
// @NotNull(groups = CreateEntityGroup.class)
// @NotEmpty(groups = CreateEntityGroup.class)
private String logisticOrder;
/**
* 物流服务商
*
* @mbg.generated
*/
@ApiModelProperty(value = "物流服务商",required = true)
// @NotNull(groups = CreateEntityGroup.class)
// @NotEmpty(groups = CreateEntityGroup.class)
private String logisticCompany;
/**
* 物流状态 未发货 已发货
*
* @mbg.generated
*/
@ApiModelProperty(value = "物流状态 未发货 已发货")
private String logisticStatus;
/**
* 申请团队
*
* @mbg.generated
*/
@ApiModelProperty(value = "申请团队")
@NotNull(groups = CreateEntityGroup.class,message = "缺少申请团队")
@NotEmpty(groups = CreateEntityGroup.class,message = "缺少申请团队")
private String team;
/**
* 是否产品或辅料
*
* @mbg.generated
*/
@ApiModelProperty(value = "是否产品或辅料 1 是 0 否")
@NotNull(groups = CreateEntityGroup.class)
@Range(min=0,max = 1,message = "是否产品或辅料只可填0或1",groups =CreateEntityGroup.class )
private Integer isproduct;
}
package com.starcharge.wios.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import java.time.LocalDateTime;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.vo
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/818:18
*/
@Data
public class DeliveryExcelVo {
/**
* id
*
* @mbg.generated
*/
@ExcelProperty(value = "id")
private Integer id;
/**
* 发货单号
*
* @mbg.generated
*/
@ExcelProperty(value = "发货单号")
private String deliveryOrder;
/**
* 安装单号
*
* @mbg.generated
*/
@ExcelProperty(value = "安装单号")
private String installOrder;
/**
* 产品批次
*
* @mbg.generated
*/
@ExcelProperty(value = "产品批次")
private String productBatch;
/**
* 发货数量
*
* @mbg.generated
*/
@ExcelProperty(value = "发货数量")
private Integer quantity;
/**
* 物料类别
*
* @mbg.generated
*/
@ExcelProperty(value = "物料类别")
private String materialCategory;
/**
* 物料编码
*
* @mbg.generated
*/
@ExcelProperty(value = "物料编码")
private String materialCode;
/**
* 物料名称
*
* @mbg.generated
*/
@ExcelProperty(value = "物料名称")
private String materialName;
/**
* 物料厂商
*
* @mbg.generated
*/
@ExcelProperty(value = "物料厂商")
private String materialCompany;
/**
* 物流单号
*
* @mbg.generated
*/
@ExcelProperty(value = "物流单号")
private String logisticOrder;
/**
* 物流服务商
*
* @mbg.generated
*/
@ExcelProperty(value = "物流服务商")
private String logisticCompany;
/**
* 物流状态 未发货 已发货
*
* @mbg.generated
*/
@ExcelProperty(value = "物流状态 未发货 已发货")
private String logisticStatus;
/**
* 申请团队
*
* @mbg.generated
*/
@ExcelProperty(value = "申请团队")
private String team;
/**
* 是否产品或辅料
*
* @mbg.generated
*/
@ExcelProperty(value = "是否产品或辅料")
private Integer isproduct;
/**
* 创建人
*
* @mbg.generated
*/
@ExcelProperty(value = "创建人")
private String createdBy;
/**
* 创建时间
*
* @mbg.generated
*/
@ExcelProperty(value = "创建时间")
private LocalDateTime createdTime;
/**
* 更新人
*
* @mbg.generated
*/
@ExcelProperty(value = "更新人")
private String updatedBy;
/**
* 更新时间
*
* @mbg.generated
*/
@ExcelProperty(value = "更新时间")
private LocalDateTime updatedTime;
}
package com.starcharge.wios.vo;
import lombok.Data;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.vo
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/1217:10
*/
@Data
public class PageVo {
private int page;
private int pagecount;
}
package com.starcharge.wios.vo;
import com.starcharge.wios.validation.CreateEntityGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.List;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.vo
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/814:40
*/
@Data
public class ReceivednoteAddVo {
/**
* 产品批次
*
* @mbg.generated
*/
@ApiModelProperty(value = "产品批次")
@NotNull(groups = CreateEntityGroup.class)
@NotEmpty(groups = CreateEntityGroup.class)
private String productBatch;
/**
* 物料类别
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料类别")
@NotNull(groups = CreateEntityGroup.class)
@NotEmpty(groups = CreateEntityGroup.class)
private String materialCategory;
/**
* 物料名称
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料名称")
@NotNull(groups = CreateEntityGroup.class)
@NotEmpty(groups = CreateEntityGroup.class)
private String materialName;
/**
* 到货仓库
*
* @mbg.generated
*/
@ApiModelProperty(value = "到货仓库")
@NotNull(groups = CreateEntityGroup.class)
@NotEmpty(groups = CreateEntityGroup.class)
private String arrivalWarehouse;
/**
* 到货仓库id
*
* @mbg.generated
*/
@ApiModelProperty(value = "到货仓库id")
@NotNull(groups = CreateEntityGroup.class)
private Integer arrivalWarehouseId;
/**
* 收货人
*
* @mbg.generated
*/
@ApiModelProperty(value = "收货人")
private String receiver;
/**
* 收货时间
*
* @mbg.generated
*/
@ApiModelProperty(value = "收货时间")
private LocalDateTime receivingTime;
@ApiModelProperty(value = "单条收货详情")
@NotNull(groups = CreateEntityGroup.class)
@Size(min=1,groups = CreateEntityGroup.class)
private List<SingleReceivenote> singleReceivenotes;
/**
* 是否产品或辅料
*
* @mbg.generated
*/
@ApiModelProperty(value = "是否产品或辅料 1 是 0 否")
@NotNull(groups = CreateEntityGroup.class)
@Range(min=0,max = 1,message = "是否产品或辅料只可填0或1",groups = CreateEntityGroup.class)
private Integer isproduct;
@Data
public static class SingleReceivenote{
/**
* 物料编码
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料编码群")
@NotNull(groups = CreateEntityGroup.class)
@NotEmpty(groups = CreateEntityGroup.class)
private String materialCode;
/**
* 到货数量
*
* @mbg.generated
*/
@ApiModelProperty(value = "到货数量")
@NotNull(groups = CreateEntityGroup.class)
@Size(min=1,groups = CreateEntityGroup.class)
private Integer arrivalQuantity;
/**
* 安装单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "安装单号")
private String installOrder;
/**
* 辅料申请单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "辅料申请单号")
private Integer auxiliaryId;
}
}
package com.starcharge.wios.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import java.time.LocalDateTime;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.vo
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/815:49
*/
@Data
public class ReceivednoteExcelVo {
/**
* id
*
* @mbg.generated
*/
@ExcelProperty(value = "id")
private Integer id;
/**
* 收货单号
*
* @mbg.generated
*/
@ExcelProperty(value = "收货单号")
private String receivedOrder;
/**
* 安装单号
*
* @mbg.generated
*/
@ExcelProperty(value = "安装单号")
private String installOrder;
/**
* 产品批次
*
* @mbg.generated
*/
@ExcelProperty(value = "产品批次")
private String productBatch;
/**
* 物料类别
*
* @mbg.generated
*/
@ExcelProperty(value = "物料类别")
private String materialCategory;
/**
* 物料编码
*
* @mbg.generated
*/
@ExcelProperty(value = "物料编码")
private String materialCode;
/**
* 物料名称
*
* @mbg.generated
*/
@ExcelProperty(value = "物料名称")
private String materialName;
/**
* 到货仓库
*
* @mbg.generated
*/
@ExcelProperty(value = "到货仓库")
private String arrivalWarehouse;
/**
* 到货仓库id
*
* @mbg.generated
*/
@ExcelProperty(value = "到货仓库id")
private Integer arrivalWarehouseId;
/**
* 收货人
*
* @mbg.generated
*/
@ExcelProperty(value = "收货人")
private String receiver;
/**
* 收货时间
*
* @mbg.generated
*/
@ExcelProperty(value = "收货时间")
private LocalDateTime receivingTime;
/**
* 到货数量
*
* @mbg.generated
*/
@ExcelProperty(value = "到货数量")
private Integer arrivalQuantity;
/**
* 辅料申请单号
*
* @mbg.generated
*/
@ExcelProperty(value = "辅料申请单号")
private Integer auxiliaryId;
/**
* 是否产品或辅料
*
* @mbg.generated
*/
@ExcelProperty(value = "是否产品或辅料")
private Integer isproduct;
/**
* 创建人
*
* @mbg.generated
*/
@ExcelProperty(value = "创建人")
private String createdBy;
/**
* 创建时间
*
* @mbg.generated
*/
@ExcelProperty(value = "创建时间")
private LocalDateTime createdTime;
/**
* 更新人
*
* @mbg.generated
*/
@ExcelProperty(value = "更新人")
private String updatedBy;
/**
* 更新时间
*
* @mbg.generated
*/
@ExcelProperty(value = "更新时间")
private LocalDateTime updatedTime;
}
package com.starcharge.wios.vo;
import com.starcharge.wios.validation.CreateEntityGroup;
import com.starcharge.wios.validation.UpdateEntityGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.vo
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/818:37
*/
@Data
public class RejectAddVo {
/**
* id
*
* @mbg.generated
*/
@ApiModelProperty(required = true,value = "id")
@NotNull(groups = UpdateEntityGroup.class)
@Min(value = 1,groups = UpdateEntityGroup.class)
private Integer id;
/**
* 退货单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "退货单号")
private String rejectOrder;
/**
* 安装单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "安装单号")
private String installOrder;
/**
* 产品批次
*
* @mbg.generated
*/
@ApiModelProperty(value = "产品批次")
@NotNull(groups = CreateEntityGroup.class)
@NotEmpty(groups = CreateEntityGroup.class)
private String productBatch;
/**
* 退货数量
*
* @mbg.generated
*/
@ApiModelProperty(value = "退货数量")
@NotNull(groups = CreateEntityGroup.class)
@Min(value = 1,groups =CreateEntityGroup.class )
private Integer quantity;
/**
* 物料类别
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料类别")
@NotNull(groups = CreateEntityGroup.class)
@NotEmpty(groups = CreateEntityGroup.class)
private String materialCategory;
/**
* 物料编码
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料编码")
@NotNull(groups = CreateEntityGroup.class)
@NotEmpty(groups = CreateEntityGroup.class)
private String materialCode;
/**
* 物料名称
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料名称")
@NotNull(groups = CreateEntityGroup.class)
@NotEmpty(groups = CreateEntityGroup.class)
private String materialName;
/**
* 物料厂商
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料厂商")
private String materialCompany;
/**
* 物流单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "物流单号")
private String logisticOrder;
/**
* 物流服务商
*
* @mbg.generated
*/
@ApiModelProperty(value = "物流服务商")
private String logisticCompany;
/**
* 退货仓库
*
* @mbg.generated
*/
@ApiModelProperty(value = "退货仓库")
@NotNull(groups = CreateEntityGroup.class)
@NotEmpty(groups = CreateEntityGroup.class)
private String warehouseName;
/**
* 退货仓库id
*
* @mbg.generated
*/
@ApiModelProperty(value = "退货仓库id")
@NotNull(groups = CreateEntityGroup.class)
@Min(value = 1,groups =CreateEntityGroup.class )
private Integer warehouseId;
/**
* 退货原因
*
* @mbg.generated
*/
@ApiModelProperty(value = "退货原因")
@NotNull(groups = CreateEntityGroup.class)
@NotEmpty(groups = CreateEntityGroup.class)
private String reason;
/**
* 是否产品或辅料
*
* @mbg.generated
*/
@ApiModelProperty(value = "是否产品或辅料 1 是 0 否")
@NotNull(groups = CreateEntityGroup.class)
@Range(min=0,max = 1,message = "是否产品或辅料只可填0或1",groups = {CreateEntityGroup.class,UpdateEntityGroup.class})
private Integer isproduct;
}
package com.starcharge.wios.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.vo
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/99:08
*/
@Data
public class RejectCheckVo {
@Min(1)
private int id;
@ApiModelProperty(value = "审核意见")
@NotNull
@NotEmpty
private String checkSuggestion;
@ApiModelProperty(value = "退货状态 已申请 已驳回 已通过 已关闭")
@NotNull
@NotEmpty
private String status;
}
package com.starcharge.wios.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import java.time.LocalDateTime;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.vo
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/10/819:13
*/
@Data
public class RejectExcelVo {
/**
* id
*
* @mbg.generated
*/
@ExcelProperty(value = "id")
private Integer id;
/**
* 退货单号
*
* @mbg.generated
*/
@ExcelProperty(value = "退货单号")
private String rejectOrder;
/**
* 安装单号
*
* @mbg.generated
*/
@ExcelProperty(value = "安装单号")
private String installOrder;
/**
* 产品批次
*
* @mbg.generated
*/
@ExcelProperty(value = "产品批次")
private String productBatch;
/**
* 退货数量
*
* @mbg.generated
*/
@ExcelProperty(value = "退货数量")
private Integer quantity;
/**
* 物料类别
*
* @mbg.generated
*/
@ExcelProperty(value = "物料类别")
private String materialCategory;
/**
* 物料编码
*
* @mbg.generated
*/
@ExcelProperty(value = "物料编码")
private String materialCode;
/**
* 物料名称
*
* @mbg.generated
*/
@ExcelProperty(value = "物料名称")
private String materialName;
/**
* 物料厂商
*
* @mbg.generated
*/
@ExcelProperty(value = "物料厂商")
private String materialCompany;
/**
* 物流单号
*
* @mbg.generated
*/
@ExcelProperty(value = "物流单号")
private String logisticOrder;
/**
* 物流服务商
*
* @mbg.generated
*/
@ExcelProperty(value = "物流服务商")
private String logisticCompany;
/**
* 退货仓库
*
* @mbg.generated
*/
@ExcelProperty(value = "退货仓库")
private String warehouseName;
/**
* 退货仓库id
*
* @mbg.generated
*/
@ExcelProperty(value = "退货仓库id")
private Integer warehouseId;
/**
* 退货原因
*
* @mbg.generated
*/
@ExcelProperty(value = "退货原因")
private String reason;
/**
* 退货状态 未审核 已通过 已驳回
*
* @mbg.generated
*/
@ExcelProperty(value = "退货状态 未审核 已通过 已驳回")
private String status;
/**
* 审批时间
*
* @mbg.generated
*/
@ExcelProperty(value = "审批时间")
private LocalDateTime checkTime;
/**
* 审核人
*
* @mbg.generated
*/
@ExcelProperty(value = "审核人")
private String checkUser;
/**
* 审核人姓名
*
* @mbg.generated
*/
@ExcelProperty(value = "审核人姓名")
private String checkUserName;
/**
* 审核意见
*
* @mbg.generated
*/
@ExcelProperty(value = "审核意见")
private String checkSuggestion;
/**
* 是否产品或辅料
*
* @mbg.generated
*/
@ExcelProperty(value = "是否产品或辅料")
private Integer isproduct;
/**
* 创建人
*
* @mbg.generated
*/
@ExcelProperty(value = "创建人")
private String createdBy;
/**
* 创建时间
*
* @mbg.generated
*/
@ExcelProperty(value = "创建时间")
private LocalDateTime createdTime;
/**
* 更新人
*
* @mbg.generated
*/
@ExcelProperty(value = "更新人")
private String updatedBy;
/**
* 更新时间
*
* @mbg.generated
*/
@ExcelProperty(value = "更新时间")
private LocalDateTime updatedTime;
}
package com.starcharge.wios.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import java.time.LocalDateTime;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.vo
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/9/2710:26
*/
@Data
public class TauxiliarymaterialsExcelVo {
/**
* id
*
* @mbg.generated
*/
@ExcelProperty("id")
private Integer id;
/**
* 物料编码
*
* @mbg.generated
*/
@ExcelProperty(value = "物料编码")
private String materialCode;
/**
* 物料名称
*
* @mbg.generated
*/
@ExcelProperty(value = "物料名称")
private String materialName;
/**
* 计量单位
*
* @mbg.generated
*/
@ExcelProperty(value = "计量单位")
private String measurementUnit;
/**
* 申请数量
*
* @mbg.generated
*/
@ExcelProperty(value = "申请数量")
private String applyQuantity;
/**
* 批准数量
*
* @mbg.generated
*/
@ExcelProperty(value = "批准数量")
private String approvedQuantity;
/**
* SAP当前库存数
*
* @mbg.generated
*/
@ExcelProperty(value = "SAP当前库存数")
private String currentySap;
/**
* 近一个月用量(SAP)
*
* @mbg.generated
*/
@ExcelProperty(value = "近一个月用量(SAP)")
private String monthAmountSap;
/**
* 近一年用量
*
* @mbg.generated
*/
@ExcelProperty(value = "近一年用量")
private String yearAmount;
/**
* 申请状态 已申请 已驳回 已通过 已关闭
*
* @mbg.generated
*/
@ExcelProperty(value = "申请状态 已申请 已驳回 已通过 已关闭")
private String applyStatus;
/**
* 申请团队
*
* @mbg.generated
*/
@ExcelProperty(value = "申请团队")
private String team;
/**
* 物流状态 未发货 已发货
*
* @mbg.generated
*/
@ExcelProperty(value = "物流状态 未发货 已发货")
private String logisticStatus;
/**
* 收货状态 未收货 已收货
*
* @mbg.generated
*/
@ExcelProperty(value = "收货状态 未收货 已收货")
private String receivingStatus;
/**
* 收货人
*
* @mbg.generated
*/
@ExcelProperty(value = "收货人")
private String recipents;
/**
* 收货地址
*
* @mbg.generated
*/
@ExcelProperty(value = "收货地址")
private String receiveAddress;
/**
* 联系电话
*
* @mbg.generated
*/
@ExcelProperty(value = "联系电话")
private String receivePhone;
/**
* 申请时间
*
* @mbg.generated
*/
@ExcelProperty(value = "申请时间")
private LocalDateTime applyTime;
/**
* 审核人
*
* @mbg.generated
*/
@ExcelProperty(value = "审核人")
private String checkUser;
/**
* 审核人姓名
*
* @mbg.generated
*/
@ExcelProperty(value = "审核人姓名")
private String checkUserName;
/**
* 审核时间
*
* @mbg.generated
*/
@ExcelProperty(value = "审核时间")
private LocalDateTime checkTime;
/**
* 审核意见
*
* @mbg.generated
*/
@ExcelProperty(value = "审核意见")
private String checkSuggestion;
/**
* 创建人
*
* @mbg.generated
*/
@ExcelProperty(value = "创建人")
private String createdBy;
/**
* 创建时间
*
* @mbg.generated
*/
@ExcelProperty(value = "创建时间")
private LocalDateTime createdTime;
/**
* 更新人
*
* @mbg.generated
*/
@ExcelProperty(value = "更新人")
private String updatedBy;
/**
* 更新时间
*
* @mbg.generated
*/
@ExcelProperty(value = "更新时间")
private LocalDateTime updatedTime;
/**
* 安装单号
*
* @mbg.generated
*/
@ExcelProperty(value = "安装单号")
private String installOrder;
/**
* 规格型号
*
* @mbg.generated
*/
@ExcelProperty(value = "规格型号")
private String specification;
/**
* 物流单号
*
* @mbg.generated
*/
@ExcelProperty(value = "物流单号")
private String logisticOrder;
/**
* 申请时库存
*
* @mbg.generated
*/
@ExcelProperty(value = "申请时库存")
private String applyInventory;
/**
* 申请单号
*
* @mbg.generated
*/
@ExcelProperty(value = "申请单号")
private String applyOrder;
/**
* 绑定仓库id
*
* @mbg.generated
*/
@ExcelProperty(value = "绑定仓库id")
private String warehouseId;
}
package com.starcharge.wios.vo;
import com.starcharge.wios.validation.CreateEntityGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
* @projectName:xr-wios
* @packageName:com.starcharge.wios.vo
* @Description:TODO
* @Author:luyincheng
* @CreateDate: 2023/9/269:31
*/
@Data
public class TauxiliarymaterialsVo {
/**
* id
*
* @mbg.generated
*/
@ApiModelProperty(required = true,value = "id")
@NotNull
private Integer id;
/**
* 物料编码
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料编码")
private String materialCode;
/**
* 物料名称
*
* @mbg.generated
*/
@ApiModelProperty(value = "物料名称")
private String materialName;
/**
* 计量单位
*
* @mbg.generated
*/
@ApiModelProperty(value = "计量单位")
private String measurementUnit;
/**
* 申请数量
*
* @mbg.generated
*/
@ApiModelProperty(value = "申请数量")
private String applyQuantity;
/**
* 申请团队
*
* @mbg.generated
*/
@ApiModelProperty(value = "申请团队")
@NotEmpty(groups = {CreateEntityGroup.class})
@NotNull(groups = {CreateEntityGroup.class})
private String team;
/**
* 收货人
*
* @mbg.generated
*/
@ApiModelProperty(value = "收货人")
@NotEmpty(groups = {CreateEntityGroup.class})
@NotNull(groups = {CreateEntityGroup.class})
private String recipents;
/**
* 收货地址
*
* @mbg.generated
*/
@ApiModelProperty(value = "收货地址")
@NotEmpty(groups = {CreateEntityGroup.class})
@NotNull(groups = {CreateEntityGroup.class})
private String receiveAddress;
/**
* 联系电话
*
* @mbg.generated
*/
@ApiModelProperty(value = "联系电话")
@NotEmpty(groups = {CreateEntityGroup.class})
@NotNull(groups = {CreateEntityGroup.class})
private String receivePhone;
/**
* 安装单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "安装单号")
private String installOrder;
/**
* 规格型号
*
* @mbg.generated
*/
@ApiModelProperty(value = "规格型号")
private String specification;
/**
* 物流单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "物流单号")
private String logisticOrder;
/**
* 申请时库存
*
* @mbg.generated
*/
@ApiModelProperty(value = "申请时库存")
private String applyInventory;
/**
* 申请单号
*
* @mbg.generated
*/
@ApiModelProperty(value = "申请单号")
private String applyOrder;
/**
* 绑定仓库id
*
* @mbg.generated
*/
@ApiModelProperty(value = "绑定仓库id")
private String warehouseId;
}
package com.starcharge.wios.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
* <p>
* 墙盒申请审核
* <p>
*
* @author <a href="mail to: ning.chai@foxmail.com" rel="nofollow">chaining</a>
*/
@Data
public class WallboxApplyCheckVO {
@ApiModelProperty(value = "数据id", notes = "不是安装订单号", example = "1", required = true)
@NotNull(message = "id不能为空")
private Long id;
@ApiModelProperty(value = "安装订单号", notes = "", example = "CA20201204044558", required = true)
private String orderId;
/** 申请状态:0:已申请,1:已通过,2:已驳回,3:已关闭 */
@ApiModelProperty(value = "审核意见", notes = "1:通过,2:驳回", example = "1", required = true)
@NotNull(message = "审核意见不能为空")
private Long checkStatus;
@ApiModelProperty(value = "审核备注", notes = "", example = "同意", required = true)
private String checkRemarks;
}
package com.starcharge.wios.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* <p>
* 墙盒申请详情页面
* <p>
*
* @author <a href="mail to: ning.chai@foxmail.com" rel="nofollow">chaining</a>
*/
@Data
public class WallboxApplyDetailVO {
/**
* t_order数据
*/
@ApiModelProperty(value = "客户姓名")
private String userName;
@ApiModelProperty(value = "联系电话")
private String userPhone;
@ApiModelProperty(value = "安装单号")
private String orderId;
@ApiModelProperty(value = "墙盒设备型号")
private String itemModel;
@ApiModelProperty(value = "墙盒设备编号")
private String wallboxCode;
@ApiModelProperty(value = "墙盒品牌")
private String wallboxModel;
/**
* t_wallbox_apply
*/
@ApiModelProperty(value = "物流单号")
private String trackingNumber;
@ApiModelProperty(value = "物流状态0未发货,1已发货")
private String trackingStatus;
@ApiModelProperty(value = "墙盒是否申请")
private String checkStatus;
/**
* t_delivery
*/
@ApiModelProperty(value = "物流供应商")
private String logisticCompany;
/**
* 物流接口
*/
//发货客户名称
private String shipperName;
//发货联系人名称
private String contactName;
//联系人手机
private String contactMobile;
//收货人联系姓名
private String receiverCustName;
//接货人联系手机
private String receiveMobile;
//接货人联系电话
private String receivePhone;
}
package com.starcharge.wios.vo;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.starcharge.wios.validation.CreateEntityGroup;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
* <p>
* 墙盒申请excel
* <p>
*
* @author <a href="mail to: ning.chai@foxmail.com" rel="nofollow">chaining</a>
*/
@Data
public class WallboxApplyExcelVO {
/** 安装订单号 */
@ExcelProperty("安装订单号")
@NotNull(groups = CreateEntityGroup.class,message = "缺少安装单号")
@NotEmpty(groups = CreateEntityGroup.class,message = "缺少安装单号")
private String orderId;
/** 墙盒设备型号(对应物料id) */
@ExcelIgnore
private String wallboxItemId;
@ExcelIgnore
private String wallboxModel;
/** 是否紧急:0:否,1:是 */
@ExcelProperty("是否紧急(0否,1是)")
@NotNull(groups = CreateEntityGroup.class,message = "缺少是否紧急数据")
private Integer ifEmergency;
/**
* 错误信息
*/
@ExcelIgnore
private String errorMessage;
}
package com.starcharge.wios.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
* <p>
* 墙盒申请安装团队
* <p>
*
* @author <a href="mail to: ning.chai@foxmail.com" rel="nofollow">chaining</a>
*/
@Data
public class WallboxApplyInstallInfoVO {
/** 自增id */
private Long id;
/** 安装订单号 */
@ApiModelProperty(value = "安装订单号")
private String orderId;
@ApiModelProperty(value = "安装状态")
private String installStatus;
/** 安装服务商id */
@ApiModelProperty(value = "安装服务商id")
private String supplierId;
/** 申请团队名称 */
@ApiModelProperty(value = "申请团队名称")
private String supplierTeam;
/** 墙盒设备型号(对应物料id) */
@ApiModelProperty(value = "墙盒设备型号(对应物料id)")
private String wallboxItemId;
/** 物料类型 */
@ApiModelProperty(value = "物料类型")
private String materialType;
/** 墙盒品牌*/
@ApiModelProperty(value = "墙盒品牌")
private String wallboxModel;
/** 墙盒类型*/
@ApiModelProperty(value = "墙盒类型")
private String wallboxType;
@ApiModelProperty(value = "预约安装时间")
private String installReserveTime;
/** 区域id */
@ApiModelProperty(value = "区域id")
private String regionId;
@ApiModelProperty(value = "区域名称")
private String regionName;
/** 是否紧急:0:否,1:是 */
@ApiModelProperty(value = "是否特殊申请")
private Integer ifEmergency;
/** 申请状态:0:已申请,1:已通过,2:已驳回,3:已关闭 */
@ApiModelProperty(value = "审核状态")
private Long checkStatus;
/** 创建时间 */
@ApiModelProperty(value = "申请时间")
private Date createdTime;
@ApiModelProperty(value = "审核时间")
private Date checkTime;
@ApiModelProperty(value = "审核人员")
private String checkAccount;
private String checkName;
@ApiModelProperty(value = "审核意见")
private String checkRemarks;
@ApiModelProperty(value = "车企安装单号")
private String outOrderId;
@ApiModelProperty(value = "物流单号")
private String trackingNumber;
/** 物流状态 */
@ApiModelProperty(value = "物流状态")
private String logisticsStatus;
@ApiModelProperty(value = "数量")
private String number;
}
package com.starcharge.wios.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
* <p>
* 墙盒申请安装团队
* <p>
*
* @author <a href="mail to: ning.chai@foxmail.com" rel="nofollow">chaining</a>
*/
@Data
public class WallboxApplyInstallListVO {
/** 自增id */
private Long id;
/** 安装订单号 */
@ApiModelProperty(value = "安装订单号")
@ExcelProperty("安装订单号")
private String orderId;
@ApiModelProperty(value = "安装状态")
private String installStatus;
/** 安装服务商id */
@ApiModelProperty(value = "安装服务商id")
private String supplierId;
/** 申请团队名称 */
@ApiModelProperty(value = "申请团队名称")
@ExcelProperty("申请团队名称")
private String supplierTeam;
/** 墙盒设备型号(对应物料id) */
@ApiModelProperty(value = "墙盒设备型号(对应物料id)")
private String wallboxItemId;
/** 物料类型 */
@ApiModelProperty(value = "物料类型")
private String materialType;
/** 墙盒品牌*/
@ApiModelProperty(value = "墙盒品牌")
@ExcelProperty("墙盒品牌")
private String wallboxModel;
/** 墙盒类型*/
@ApiModelProperty(value = "墙盒类型")
private String wallboxType;
@ApiModelProperty(value = "剩余时间")
private String timeRemaining;
/** 区域id */
@ApiModelProperty(value = "区域id")
private String regionId;
@ExcelProperty("仓库名称")
private String regionName;
/** 是否紧急:0:否,1:是 */
@ApiModelProperty(value = "是否特殊申请")
private Integer ifEmergency;
/** 是否超时:0:未超时,1:已超时 */
@ApiModelProperty(value = "超时类型")
private Long ifTimeout;
/** 申请状态:0:已申请,1:已通过,2:已驳回,3:已关闭 */
@ApiModelProperty(value = "申请状态")
private Long checkStatus;
/** 创建时间 */
@ApiModelProperty(value = "申请时间")
private Date createdTime;
@ApiModelProperty(value = "物流单号")
private String trackingNumber;
/** 物流状态 */
@ApiModelProperty(value = "物流状态")
private String logisticsStatus;
@ApiModelProperty(value = "数量")
private String number;
}
package com.starcharge.wios.vo;
import lombok.Data;
import java.util.Date;
/**
* <p>
* 墙盒申请分页响应结果
* <p>
*
* @author <a href="mail to: ning.chai@foxmail.com" rel="nofollow">chaining</a>
*/
@Data
public class WallboxApplyPageVO {
/** 自增id */
private Long id;
/** 安装订单号 */
private String installationOrderId;
/** 安装服务商id */
private String supplierId;
/** 申请团队名称 */
private String supplierTeam;
/** 墙盒设备型号(对应物料id) */
private String wallboxItemId;
/** 物料类型 */
private String materialType;
/** 墙盒品牌*/
private String wallboxModel;
/** 墙盒类型*/
private String wallboxType;
/** 区域id */
private String regionId;
private Date installReserveTime;
private String outOrderId;
/** 审核备注 */
private String checkRemarks;
/** 是否紧急:0:否,1:是 */
private Integer ifEmergency;
/** 是否超时:0:未超时,1:已超时 */
private Long ifTimeout;
/** 申请状态:0:已申请,1:已通过,2:已驳回,3:已关闭 */
private Long checkStatus;
/** 创建人 */
private String createAccount;
/** 创建时间 */
private Date createdTime;
/** 更新人 */
private String modifyAccount;
/** 更新时间 */
private Date modifyTime;
/** 审核人 */
private String checkAccount;
/** 审核时间 */
private Date checkTime;
/** 物流状态 */
private String logisticsStatus;
}
package com.starcharge.wios.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* <p>
* description
* <p>
*
* @author <a href="mail to: ning.chai@foxmail.com" rel="nofollow">chaining</a>
*/
@Data
public class WallboxApplyReqVO {
/** 申请团队名称 */
@ApiModelProperty(value = "申请团队名称", required = true)
private String supplierTeam;
/** 区域id */
@ApiModelProperty(value = "区域id", required = true)
private String regionId;
/** 申请状态:0:已申请,1:已通过,2:已驳回,3:已关闭 */
@ApiModelProperty(value = "申请状态", notes = "0:已申请,1:已通过,2:已驳回,3:已关闭", example = "1", required = true)
private Long checkStatus;
/** 墙盒设备型号(对应物料id) */
@ApiModelProperty(value = "墙盒设备型号(对应物料id)", required = false)
private String wallboxItemId;
/** 物流状态0未发货,1已发货 */
@ApiModelProperty(value = "物流状态0未发货,1已发货", required = false)
private String trackingStatus;
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论