| | |
| | | package doumeemes.dao.ext.dto; |
| | | |
| | | import cn.afterturn.easypoi.excel.annotation.Excel; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @ApiModelProperty(value = "优先级") |
| | | private Integer urgent; |
| | | |
| | | @ApiModelProperty(value = "计划开始日期") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date startDate; |
| | | |
| | | @ApiModelProperty(value = "销售单号" ) |
| | | private String salesorder; |
| | | |
| | | } |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date startDate; |
| | | @ApiModelProperty(value = "销售单号" ) |
| | | @Excel(name="销售单号",index = 16,width =15) |
| | | private String salesorder; |
| | | @ApiModelProperty(value = "物料编码(关联material_distribute表)", example = "1") |
| | | @ExcelColumn(name="物料编码(关联material_distribute表)") |
| | |
| | | @NotBlank(message = "姓名不能为空", groups = {OperaType.Create.class/*, OperaType.Update.class*/}) |
| | | private String realname; |
| | | |
| | | @NotBlank(message = "工号不能为空", groups = {OperaType.Create.class/*, OperaType.Update.class*/}) |
| | | // @NotBlank(message = "工号不能为空", groups = {OperaType.Create.class/*, OperaType.Update.class*/}) |
| | | @ApiModelProperty(value = "总账号工号") |
| | | private String empNo; |
| | | |
| | |
| | | || Objects.isNull(workPlansSaveDTO.getNum()) |
| | | || Objects.isNull(workPlansSaveDTO.getFactoryId()) |
| | | || Objects.isNull(workPlansSaveDTO.getUnitId()) |
| | | || Objects.isNull(workPlansSaveDTO.getMaterialId())){ |
| | | || Objects.isNull(workPlansSaveDTO.getMaterialId()) |
| | | || Objects.isNull(workPlansSaveDTO.getStartDate()) |
| | | || workPlansSaveDTO.getStartDate().getTime() > workPlansSaveDTO.getPlanDate().getTime()){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | WorkPlans workPlans = new WorkPlans(); |
| | |
| | | # application: |
| | | # name: doumeemes |
| | | profiles: |
| | | active: standardPro |
| | | active: standard |
| | | # JSON返回配置 |
| | | jackson: |
| | | # 默认时区 |