| | |
| | | <artifactId>minio</artifactId> |
| | | </dependency> |
| | | |
| | | <!--å¤å¶--> |
| | | <dependency> |
| | | <groupId>ma.glasnost.orika</groupId> |
| | | <artifactId>orika-core</artifactId> |
| | | <version>1.4.6</version> |
| | | </dependency> |
| | | |
| | | <!-- é¿éäºçä¿¡ --> |
| | | <dependency> |
| | | <groupId>com.aliyun</groupId> |
| | |
| | | } |
| | | |
| | | /** |
| | | * ç¨äºå端åå
¸ç¿»è¯ SysDictServiceImpl#queryManyDictByKeys(java.util.List, java.util.List) |
| | | * ç¨äºå端åå
¸ç¿»è¯ SysDictServiceImpl#queryManyDictByKeys(java.utils.List, java.utils.List) |
| | | * @param dictCodeList |
| | | * @param keys |
| | | * @return |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.controller; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.modules.mdcJc.entity.ClassMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.mapper.ClassMonthlyscheduleMapper; |
| | | import org.jeecg.modules.mdcJc.service.IClassMonthlyscheduleService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/16 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = "éæ") |
| | | @RestController |
| | | @RequestMapping("/mdcJc/mdcAlarmInfo") |
| | | public class ClassMonthlyscheduleController extends JeecgController<ClassMonthlyschedule,IClassMonthlyscheduleService> { |
| | | |
| | | @Autowired |
| | | private IClassMonthlyscheduleService classMonthlyscheduleService; |
| | | |
| | | @ApiOperation(value = "mes", notes = "mes") |
| | | @GetMapping("/findListClass") |
| | | public Result<?> findListClass() { |
| | | classMonthlyscheduleService.findListClass("2024-06"); |
| | | return null; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/15 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("T_ClassMonthlyschedule") |
| | | @ApiModel(value = "彿çç»") |
| | | public class ClassMonthlyschedule implements Serializable { |
| | | private static final long serialVersionUID = -4733120585358211415L; |
| | | |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | private String mdc_id; |
| | | @TableField(value = "ID") |
| | | private Integer id; |
| | | @TableField(value = "NY") |
| | | private String ny; |
| | | @TableField(value = "Clazz") |
| | | private String clazz; |
| | | @TableField(value = "PlanCont") |
| | | private Integer planCont; |
| | | @TableField(value = "CompletionCount") |
| | | private Integer completionCount; |
| | | @TableField(value = "QualifiedCount") |
| | | private Integer qualifiedCount; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/16 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("mdcJc_ClassMonthlyschedule") |
| | | @ApiModel(value = "彿çç»") |
| | | public class MdcClassMonthlyschedule implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -4733120585358211415L; |
| | | |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | private String mdc_id; |
| | | @TableField(value = "id") |
| | | private Integer id; |
| | | @TableField(value = "ny") |
| | | private String ny; |
| | | @TableField(value = "clazz") |
| | | private String clazz; |
| | | @TableField(value = "planCount") |
| | | private Integer planCount; |
| | | @TableField(value = "completionCount") |
| | | private Integer completionCount; |
| | | @TableField(value = "qualifiedCount") |
| | | private Integer qualifiedCount; |
| | | |
| | | /** |
| | | * åå»ºæ¥æ |
| | | */ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/19 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("mdcJc_OnLine_Queue") |
| | | @ApiModel(value = "èªå¨çº¿ä¸çº¿") |
| | | public class MdcOnLineQueue implements Serializable { |
| | | private static final long serialVersionUID = -4733120585358211415L; |
| | | |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | private String mdc_id; |
| | | |
| | | @TableField(value = "id") |
| | | private Integer id; |
| | | @TableField(value = "partBarCode") |
| | | private String partBarCode; |
| | | @TableField(value = "productNo") |
| | | private String productNo; |
| | | @TableField(value = "productName") |
| | | private String productName; |
| | | @TableField(value = "scanTime") |
| | | private Date scanTime; |
| | | @TableField(value = "remark") |
| | | private Integer remark; |
| | | |
| | | /** |
| | | * åå»ºæ¥æ |
| | | */ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/19 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("mdcJc_ProductDayschedule") |
| | | @ApiModel(value = "彿é¶é¨ä»¶è®¡åè¿åº¦") |
| | | public class MdcProductDayschedule implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -4733120585358211415L; |
| | | |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | private String mdc_id; |
| | | |
| | | @TableField(value = "ID") |
| | | private Integer id; |
| | | @TableField(value = "PlanDate") |
| | | private String planDate; |
| | | @TableField(value = "ProductNo") |
| | | private String productNo; |
| | | @TableField(value = "ProductName") |
| | | private String productName; |
| | | @TableField(value = "OrderID") |
| | | private String orderId; |
| | | @TableField(value = "ProcedureName") |
| | | private String procedureName; |
| | | @TableField(value = "Clazz") |
| | | private String clazz; |
| | | @TableField(value = "PlanCount") |
| | | private Integer planCount; |
| | | @TableField(value = "CompletionCount") |
| | | private Integer completionCount; |
| | | @TableField(value = "QualifiedCount") |
| | | private Integer qualifiedCount; |
| | | @TableField(value = "ProcessRoute") |
| | | private String processRoute; |
| | | @TableField(value = "EquipmentID") |
| | | private String equipmentId; |
| | | @TableField(value = "IsAutomaticLine") |
| | | private String isAutomaticLine; |
| | | |
| | | /** |
| | | * åå»ºæ¥æ |
| | | */ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("mdcJc_ProductMonthlyschedule") |
| | | @ApiModel(value = "彿é¶é¨ä»¶") |
| | | public class MdcProductMonthlyschedule implements Serializable { |
| | | private static final long serialVersionUID = -4733120585358211415L; |
| | | |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | private String mdc_id; |
| | | |
| | | private Integer id; |
| | | @TableField(value = "ny") |
| | | private String ny; |
| | | @TableField(value = "productNo") |
| | | private String productNo; |
| | | @TableField(value = "productName") |
| | | private String productName; |
| | | @TableField(value = "planCount") |
| | | private Integer planCount; |
| | | @TableField(value = "completionCount") |
| | | private Integer completionCount; |
| | | @TableField(value = "qualifiedCount") |
| | | private Integer qualifiedCount; |
| | | /** |
| | | * åå»ºæ¥æ |
| | | */ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("mdcJc_qualityMonthy") |
| | | @ApiModel(value = "彿é¶é¨ä»¶") |
| | | public class MdcQualityMonth implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -4733120585358211415L; |
| | | |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | private String mdc_id; |
| | | |
| | | @TableField(value = "id") |
| | | private Integer id; |
| | | @TableField(value = "ny") |
| | | private String ny; |
| | | @TableField(value = "productNo") |
| | | private String productNo; |
| | | @TableField(value = "productName") |
| | | private String productName; |
| | | @TableField(value = "completionCount") |
| | | private Integer completionCount; |
| | | /** |
| | | * åå»ºæ¥æ |
| | | */ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/19 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("mdcJc_UnderLine_Queue") |
| | | @ApiModel(value = "èªå¨çº¿ä¸çº¿éåMES") |
| | | public class MdcUnderLineQueue implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -4733120585358211415L; |
| | | |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | private String mdc_id; |
| | | @TableField(value = "id") |
| | | private Integer id; |
| | | @TableField(value = "partBarCode") |
| | | private String partBarCode; |
| | | @TableField(value = "productNo") |
| | | private String productNo; |
| | | @TableField(value = "productName") |
| | | private String productName; |
| | | @TableField(value = "devCode") |
| | | private String devCode; |
| | | @TableField(value = "underTime") |
| | | private Date underTime; |
| | | @TableField(value = "remark") |
| | | private Integer remark; |
| | | |
| | | /** |
| | | * åå»ºæ¥æ |
| | | */ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/19 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("T_OnLine_Queue") |
| | | @ApiModel(value = "èªå¨çº¿ä¸çº¿") |
| | | public class OnLineQueue { |
| | | @TableField(value = "ID") |
| | | private Integer id; |
| | | @TableField(value = "PartBarCode") |
| | | private String partBarCode; |
| | | @TableField(value = "ProductNo") |
| | | private String productNo; |
| | | @TableField(value = "ProductName") |
| | | private String productName; |
| | | @TableField(value = "Scan_time") |
| | | private Date scanTime; |
| | | @TableField(value = "Remark") |
| | | private Integer remark; |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/19 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("T_ProductDayschedule") |
| | | @ApiModel(value = "彿é¶é¨ä»¶è®¡åè¿åº¦") |
| | | public class ProductDayschedule { |
| | | @TableField(value = "ID") |
| | | private Integer id; |
| | | @TableField(value = "PlanDate") |
| | | private String planDate; |
| | | @TableField(value = "ProductNo") |
| | | private String productNo; |
| | | @TableField(value = "ProductName") |
| | | private String productName; |
| | | @TableField(value = "OrderID") |
| | | private String orderId; |
| | | @TableField(value = "ProcedureName") |
| | | private String procedureName; |
| | | @TableField(value = "Clazz") |
| | | private String clazz; |
| | | @TableField(value = "PlanCount") |
| | | private Integer planCount; |
| | | @TableField(value = "CompletionCount") |
| | | private Integer completionCount; |
| | | @TableField(value = "QualifiedCount") |
| | | private Integer qualifiedCount; |
| | | @TableField(value = "ProcessRoute") |
| | | private String processRoute; |
| | | @TableField(value = "EquipmentID") |
| | | private String equipmentId; |
| | | @TableField(value = "IsAutomaticLine") |
| | | private String isAutomaticLine; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/16 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("T_ProductMonthlyschedule") |
| | | @ApiModel(value = "彿é¶é¨ä»¶è®¡åè¿åº¦") |
| | | public class ProductMonthlyschedule implements Serializable { |
| | | |
| | | @TableField(value = "ID") |
| | | private Integer id; |
| | | @TableField(value = "NY") |
| | | private String ny; |
| | | @TableField(value = "ProductNo") |
| | | private String productNo; |
| | | @TableField(value = "ProductName") |
| | | private String productName; |
| | | @TableField(value = "PlanCount") |
| | | private Integer PlanCount; |
| | | @TableField(value = "CompletionCount") |
| | | private Integer completionCount; |
| | | @TableField(value = "QualifideCount") |
| | | private Integer qualifiedCount; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/17 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("T_Quality_monthy") |
| | | @ApiModel(value = "彿é¶é¨ä»¶è®¡åè¿åº¦") |
| | | public class QualityMonth implements Serializable { |
| | | |
| | | @TableField(value = "ID") |
| | | private Integer id; |
| | | @TableField(value = "NY") |
| | | private String ny; |
| | | @TableField(value = "ProductNo") |
| | | private String productNo; |
| | | @TableField(value = "ProductName") |
| | | private String productName; |
| | | @TableField(value = "CompletionCount") |
| | | private Integer completionCount; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/19 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("T_UnderLine_Queue") |
| | | @ApiModel(value = "èªå¨çº¿ä¸çº¿éåMES") |
| | | public class UnderLineQueue { |
| | | @TableField(value = "ID") |
| | | private Integer id; |
| | | @TableField(value = "PartBarCode") |
| | | private String partBarCode; |
| | | @TableField(value = "ProductNo") |
| | | private String productNo; |
| | | @TableField(value = "ProductName") |
| | | private String productName; |
| | | @TableField(value = "DevCode") |
| | | private String devCode; |
| | | @TableField(value = "UnderTime") |
| | | private Date underTime; |
| | | @TableField(value = "Remark") |
| | | private Integer remark; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.mapper; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.mdcJc.entity.ClassMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.entity.ProductMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.entity.QualityMonth; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/15 E:\work_yb\yt\mdc_yituo\lxzn-module-mdc\src\main\java\org\jeecg\modules\mdcJc\mapper |
| | | */ |
| | | public interface ClassMonthlyscheduleMapper extends BaseMapper<ClassMonthlyschedule> { |
| | | /** |
| | | * æ¥è¯¢æä¸ªææ°æ® æçç»å®ææ
åµ |
| | | * |
| | | * @param dateTime |
| | | * @return |
| | | */ |
| | | List<ClassMonthlyschedule> findListClass(@Param("dateTime") String dateTime); |
| | | |
| | | /** |
| | | * 彿é¶é¨ä»¶è®¡åè¿åº¦ä¿¡æ¯ |
| | | * @param dateTime |
| | | * @return |
| | | */ |
| | | List<ProductMonthlyschedule> findListProductMonth(@Param("dateTime") String dateTime); |
| | | |
| | | /** |
| | | * æåæ ¼åä¸åæ ¼ |
| | | * @param dateTime |
| | | * @return |
| | | */ |
| | | List<QualityMonth> findListQualityMonth(@Param("dateTime") String dateTime); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.mdcJc.entity.MdcClassMonthlyschedule; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/16 |
| | | */ |
| | | |
| | | public interface MdcClassMonthlyscheduleMapper extends BaseMapper<MdcClassMonthlyschedule> { |
| | | |
| | | List<String> selectDateList(@Param("dateTime")String dateTime); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.mdcJc.entity.MdcProductMonthlyschedule; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/17 |
| | | */ |
| | | public interface MdcProductMonthScheduleMapper extends BaseMapper<MdcProductMonthlyschedule> { |
| | | |
| | | List<String> selectDateList(@Param("dateTime")String dateTime); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.mdcJc.entity.MdcQualityMonth; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/17 |
| | | */ |
| | | public interface MdcQualityMonthMapper extends BaseMapper<MdcQualityMonth> { |
| | | /** |
| | | * æ¥è¯¢ |
| | | * @param dateTime |
| | | * @return |
| | | */ |
| | | List<String> selectDateList(@Param("dateTime")String dateTime); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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="org.jeecg.modules.mdcJc.mapper.ClassMonthlyscheduleMapper"> |
| | | <select id="findListClass" resultType="org.jeecg.modules.mdcJc.entity.ClassMonthlyschedule"> |
| | | SELECT * FROM T_ClassMonthlyschedule WHERE NY = #{ dateTime } |
| | | </select> |
| | | |
| | | |
| | | <select id="findListProductMonth" resultType="org.jeecg.modules.mdcJc.entity.ProductMonthlyschedule"> |
| | | SELECT * FROM T_ProductMonthlyschedule WHERE NY = #{ dateTime } |
| | | </select> |
| | | |
| | | <select id="findListQualityMonth" resultType="org.jeecg.modules.mdcJc.entity.QualityMonth"> |
| | | SELECT * FROM T_Quality_monthy WHERE NY = #{ dateTime } |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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="org.jeecg.modules.mdcJc.mapper.MdcClassMonthlyscheduleMapper"> |
| | | <select id="selectDateList" resultType="java.lang.String"> |
| | | SELECT mdc_id FROM mdcJc_ClassMonthlyschedule WHERE ny = #{ dateTime } |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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="org.jeecg.modules.mdcJc.mapper.MdcProductMonthScheduleMapper"> |
| | | <select id="selectDateList" resultType="java.lang.String"> |
| | | SELECT mdc_id FROM mdcJc_ProductMonthlyschedule WHERE ny = #{ dateTime } |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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="org.jeecg.modules.mdcJc.mapper.MdcQualityMonthMapper"> |
| | | <select id="selectDateList" resultType="java.lang.String"> |
| | | SELECT mdc_id FROM mdcJc_qualityMonthy WHERE ny = #{ dateTime } |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.mdcJc.entity.ClassMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.entity.ProductMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.entity.QualityMonth; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/15 |
| | | */ |
| | | public interface IClassMonthlyscheduleService extends IService<ClassMonthlyschedule> { |
| | | |
| | | /** |
| | | * æ¥è¯¢æä¸ªææ°æ® æçç»å®ææ
åµ |
| | | * @param dateTime |
| | | * @return |
| | | */ |
| | | List<ClassMonthlyschedule> findListClass(String dateTime); |
| | | |
| | | /** |
| | | * 彿é¶é¨ä»¶ |
| | | * @param dateTime |
| | | * @return |
| | | */ |
| | | List<ProductMonthlyschedule> findListProductMonth(String dateTime); |
| | | |
| | | |
| | | /** |
| | | * æåæ ¼åä¸åæ ¼ |
| | | * @param dateTime |
| | | * @return |
| | | */ |
| | | List<QualityMonth> findListQualityMonth( String dateTime); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.mdcJc.entity.MdcClassMonthlyschedule; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/16 |
| | | */ |
| | | public interface IMdcClassMonthService extends IService<MdcClassMonthlyschedule> { |
| | | |
| | | /** |
| | | * è·å彿çç»å®ææ
åµ |
| | | * @return |
| | | */ |
| | | boolean saveOrUpdateClassMonthSchedule(); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import javafx.concurrent.Service; |
| | | import org.jeecg.modules.mdcJc.entity.MdcProductMonthlyschedule; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/17 |
| | | */ |
| | | public interface IMdcProductMonthScheduleService extends IService<MdcProductMonthlyschedule> { |
| | | |
| | | /** |
| | | * 彿é¶é¨ä»¶ |
| | | * @return |
| | | */ |
| | | boolean scheduleProductMonthList(); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.mdcJc.entity.MdcQualityMonth; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/17 |
| | | */ |
| | | public interface IMdcQualityMonthService extends IService<MdcQualityMonth> { |
| | | |
| | | boolean saveQualityMonth(); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.service; |
| | | |
| | | |
| | | import org.jeecg.modules.mdcJc.entity.MdcClassMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.vo.MesClassMonthlyschedule; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/15 |
| | | */ |
| | | |
| | | public interface IMesInfoInMdcService { |
| | | |
| | | /** |
| | | * 彿çç»å®ææ
åµ |
| | | * @return |
| | | */ |
| | | List<MdcClassMonthlyschedule> mesClass(); |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.service.impl; |
| | | |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.mdcJc.entity.ClassMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.entity.ProductMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.entity.QualityMonth; |
| | | import org.jeecg.modules.mdcJc.mapper.ClassMonthlyscheduleMapper; |
| | | import org.jeecg.modules.mdcJc.service.IClassMonthlyscheduleService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/15 |
| | | */ |
| | | |
| | | @Service |
| | | @DS("mesSoAdb") |
| | | public class ClassMonthlyscheduleServiceImpl extends ServiceImpl<ClassMonthlyscheduleMapper,ClassMonthlyschedule> implements IClassMonthlyscheduleService { |
| | | |
| | | @Override |
| | | public List<ClassMonthlyschedule> findListClass(String dateTime) { |
| | | return super.baseMapper.findListClass(dateTime); |
| | | } |
| | | |
| | | @Override |
| | | public List<ProductMonthlyschedule> findListProductMonth(String dateTime) { |
| | | return super.baseMapper.findListProductMonth(dateTime); |
| | | } |
| | | |
| | | @Override |
| | | public List<QualityMonth> findListQualityMonth(String dateTime) { |
| | | return super.baseMapper.findListQualityMonth(dateTime); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.mdc.util.DateUtils; |
| | | import org.jeecg.modules.mdcJc.entity.ClassMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.entity.MdcClassMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.mapper.MdcClassMonthlyscheduleMapper; |
| | | import org.jeecg.modules.mdcJc.service.IClassMonthlyscheduleService; |
| | | import org.jeecg.modules.mdcJc.service.IMdcClassMonthService; |
| | | import org.jeecg.modules.utils.BeanMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/16 |
| | | */ |
| | | @Service |
| | | public class MdcClassMonthServiceImpl extends ServiceImpl<MdcClassMonthlyscheduleMapper,MdcClassMonthlyschedule> implements IMdcClassMonthService { |
| | | |
| | | @Autowired |
| | | private IClassMonthlyscheduleService classMonthlyscheduleService; |
| | | |
| | | @Override |
| | | public boolean saveOrUpdateClassMonthSchedule() { |
| | | String date = DateUtils.format(DateUtils.getNow(),DateUtils.STR_YEAR_MONTH); |
| | | List<ClassMonthlyschedule> list = classMonthlyscheduleService.findListClass(date); |
| | | if (list == null || list.isEmpty()) { |
| | | return true; |
| | | } |
| | | List<String> mdcListIds = super.baseMapper.selectDateList(date); |
| | | if (mdcListIds != null && !mdcListIds.isEmpty()) { |
| | | this.removeBatchByIds(mdcListIds); |
| | | } |
| | | List<MdcClassMonthlyschedule> mesC = new ArrayList<>(); |
| | | for (ClassMonthlyschedule c : list) { |
| | | MdcClassMonthlyschedule mdc = new MdcClassMonthlyschedule(); |
| | | BeanMapper.copy(c,mdc); |
| | | mdc.setPlanCount(c.getPlanCont()); |
| | | mesC.add(mdc); |
| | | } |
| | | boolean b = this.saveBatch(mesC); |
| | | return b; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.mdc.util.DateUtils; |
| | | import org.jeecg.modules.mdcJc.entity.MdcProductMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.entity.ProductMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.mapper.MdcProductMonthScheduleMapper; |
| | | import org.jeecg.modules.mdcJc.service.IClassMonthlyscheduleService; |
| | | import org.jeecg.modules.mdcJc.service.IMdcProductMonthScheduleService; |
| | | import org.jeecg.modules.utils.BeanMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/17 |
| | | */ |
| | | @Service |
| | | public class MdcProductMonthScheduleServiceImp extends ServiceImpl<MdcProductMonthScheduleMapper,MdcProductMonthlyschedule> implements IMdcProductMonthScheduleService { |
| | | |
| | | @Autowired |
| | | private IClassMonthlyscheduleService classMonthlyscheduleService; |
| | | |
| | | @Override |
| | | public boolean scheduleProductMonthList() { |
| | | String date = DateUtils.format(DateUtils.getNow(),DateUtils.STR_YEAR_MONTH); |
| | | List<ProductMonthlyschedule> list = classMonthlyscheduleService.findListProductMonth(date); |
| | | if (list == null || list.isEmpty()) { |
| | | return true; |
| | | } |
| | | List<String> mdcListIds = super.baseMapper.selectDateList(date); |
| | | if (mdcListIds != null && !mdcListIds.isEmpty()) { |
| | | this.removeBatchByIds(mdcListIds); |
| | | } |
| | | List<MdcProductMonthlyschedule> mesC = new ArrayList<>(); |
| | | for (ProductMonthlyschedule c : list) { |
| | | MdcProductMonthlyschedule mdc = new MdcProductMonthlyschedule(); |
| | | BeanMapper.copy(c,mdc); |
| | | mesC.add(mdc); |
| | | } |
| | | boolean b = this.saveBatch(mesC); |
| | | return b; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.mdc.util.DateUtils; |
| | | import org.jeecg.modules.mdcJc.entity.ClassMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.entity.MdcClassMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.entity.MdcQualityMonth; |
| | | import org.jeecg.modules.mdcJc.entity.QualityMonth; |
| | | import org.jeecg.modules.mdcJc.mapper.MdcQualityMonthMapper; |
| | | import org.jeecg.modules.mdcJc.service.IClassMonthlyscheduleService; |
| | | import org.jeecg.modules.mdcJc.service.IMdcQualityMonthService; |
| | | import org.jeecg.modules.utils.BeanMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/17 |
| | | */ |
| | | @Service |
| | | public class MdcQualityMonthServiceImpl extends ServiceImpl<MdcQualityMonthMapper,MdcQualityMonth> implements IMdcQualityMonthService { |
| | | |
| | | @Autowired |
| | | private IClassMonthlyscheduleService classMonthlyscheduleService; |
| | | |
| | | @Override |
| | | public boolean saveQualityMonth() { |
| | | String date = DateUtils.format(DateUtils.getNow(),DateUtils.STR_YEAR_MONTH); |
| | | List<QualityMonth> list = classMonthlyscheduleService.findListQualityMonth(date); |
| | | if (list == null || list.isEmpty()) { |
| | | return true; |
| | | } |
| | | List<String> mdcListIds = super.baseMapper.selectDateList(date); |
| | | if (mdcListIds != null && !mdcListIds.isEmpty()) { |
| | | this.removeBatchByIds(mdcListIds); |
| | | } |
| | | List<MdcQualityMonth> mesC = new ArrayList<>(); |
| | | for ( QualityMonth c : list) { |
| | | MdcQualityMonth mdc = new MdcQualityMonth(); |
| | | BeanMapper.copy(c,mdc); |
| | | mesC.add(mdc); |
| | | } |
| | | boolean b = this.saveBatch(mesC); |
| | | return b; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.service.impl; |
| | | |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import org.jeecg.modules.mdc.util.DateUtils; |
| | | import org.jeecg.modules.mdcJc.entity.ClassMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.entity.MdcClassMonthlyschedule; |
| | | import org.jeecg.modules.mdcJc.service.IClassMonthlyscheduleService; |
| | | import org.jeecg.modules.mdcJc.service.IMesInfoInMdcService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/15 |
| | | */ |
| | | @DS("mesSoAdb") |
| | | @Service |
| | | public class MesInfoInMdcServiceImpl implements IMesInfoInMdcService { |
| | | |
| | | @Autowired |
| | | private IClassMonthlyscheduleService classMonthlyscheduleService; |
| | | |
| | | @Override |
| | | public List<MdcClassMonthlyschedule> mesClass() { |
| | | String date = DateUtils.format(DateUtils.getNow(),DateUtils.STR_YEAR_MONTH); |
| | | List<ClassMonthlyschedule> list = classMonthlyscheduleService.findListClass(date); |
| | | List<MdcClassMonthlyschedule> mesC = new ArrayList<>(); |
| | | BeanUtils.copyProperties(list,mesC); |
| | | return mesC; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/15 |
| | | */ |
| | | @Data |
| | | public class MesClassMonthlyschedule { |
| | | private Integer id; |
| | | private String ny; |
| | | private String clazz; |
| | | private Integer planCount; |
| | | private Integer completionCount; |
| | | private Integer qualifiedCount; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.vo; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/16 |
| | | */ |
| | | public class MesProductMonthlyschedule { |
| | | |
| | | private Integer id; |
| | | private String ny; |
| | | private String clazz; |
| | | private Integer planCont; |
| | | private Integer completionCount; |
| | | private Integer qualifiedCount; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc.vo; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/17 |
| | | */ |
| | | public class QualityMonthyVo { |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.utils; |
| | | |
| | | import ma.glasnost.orika.MapperFacade; |
| | | import ma.glasnost.orika.MapperFactory; |
| | | import ma.glasnost.orika.converter.builtin.PassThroughConverter; |
| | | import ma.glasnost.orika.impl.DefaultMapperFactory; |
| | | |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | | /** |
| | | * å¤å¶å¯¹è±¡å±æ§çå·¥å
፱ȋ |
| | | * Created by sanerhe on 2014/12/28. |
| | | */ |
| | | public class BeanMapper { |
| | | |
| | | /** |
| | | * å®ä¾. |
| | | */ |
| | | private static MapperFacade mapper; |
| | | |
| | | static { |
| | | // 妿srcä¸å±æ§ä¸ºnullï¼å°±ä¸å¤å¶å°dest |
| | | MapperFactory mapperFactory = new DefaultMapperFactory.Builder().mapNulls(false).build(); |
| | | // 妿屿§æ¯Objectï¼å°±åªå¤å¶å¼ç¨ï¼ä¸å¤å¶å¼ï¼å¯ä»¥é¿å
循ç¯å¤å¶ |
| | | mapperFactory.getConverterFactory().registerConverter(new PassThroughConverter(Object.class)); |
| | | mapper = mapperFactory.getMapperFacade(); |
| | | } |
| | | |
| | | /** |
| | | * æsourceä¸çå¼å¤å¶å°destinationä¸. |
| | | */ |
| | | public static void copy(Object source, Object destination) { |
| | | mapper.map(source, destination); |
| | | } |
| | | |
| | | /** |
| | | * æsourceä¸çå¼å¤å¶å°destinationClsä¸. |
| | | */ |
| | | public static <S, D> List<D> copyList(List<S> source, Class<D> destinationCls) { |
| | | return mapper.mapAsList(source, destinationCls); |
| | | } |
| | | |
| | | /** |
| | | * æsourceä¸çå¼å¤å¶å°destinationä¸. |
| | | */ |
| | | public static <S, D> List<D> copyCollection(List<S> source, List<D> destination, Class<D> destinationCls) { |
| | | mapper.mapAsCollection(source, destination, destinationCls); |
| | | return destination; |
| | | } |
| | | |
| | | /** |
| | | * æsourceä¸çå¼å¤å¶å°destinationä¸. |
| | | */ |
| | | public static <S, D> Set<D> copyCollection(Set<S> source, Class<D> destinationCls) { |
| | | Set<D> destination = mapper.mapAsSet(source, destinationCls); |
| | | return destination; |
| | | } |
| | | } |
| | |
| | | username: sa |
| | | password: 123 |
| | | driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver |
| | | mesSoAdb: |
| | | url: jdbc:sqlserver://192.168.124.118:1433;databasename=SOADB |
| | | username: sa |
| | | password: 123 |
| | | driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver |
| | | #redis é
ç½® |
| | | redis: |
| | | database: 0 |
| | |
| | | application: |
| | | name: jeecg-system |
| | | profiles: |
| | | active: '@profile.name@' |
| | | # active: dev |
| | | #active: '@profile.name@' |
| | | active: dev |
| | |
| | | public class TestMain { |
| | | public static void main(String[] args) { |
| | | // 请æ±å°å |
| | | String url = "https://api.boot.jeecg.com/sys/user/list"; |
| | | String url = "https://836u458t54.vicp.fun/chat/test_chat"; |
| | | // è¯·æ± Header ï¼ç¨äºä¼ éTokenï¼ |
| | | HttpHeaders headers = getHeaders(); |
| | | // è¯·æ±æ¹å¼æ¯ GET 代表è·åæ°æ® |
| | | HttpMethod method = HttpMethod.GET; |
| | | HttpMethod method = HttpMethod.POST; |
| | | |
| | | System.out.println("请æ±å°åï¼" + url); |
| | | System.out.println("è¯·æ±æ¹å¼ï¼" + method); |
| | | |
| | | String data = "{\"id\":\"683a65fd-8feb-4446-ad32-714c4785f667\",\"messages\":[{\"role\":\"user\",\"content\":\"ç»æè®²ä¸ªæ
äºï¼\"}],\"stream\":false,\"max_tokens\":500}"; |
| | | // å©ç¨ RestUtil 请æ±è¯¥url |
| | | ResponseEntity<JSONObject> result = RestUtil.request(url, method, headers, null, null, JSONObject.class); |
| | | ResponseEntity<JSONObject> result = RestUtil.request(url, method, headers, null, data, JSONObject.class); |
| | | if (result != null && result.getBody() != null) { |
| | | System.out.println("è¿åç»æï¼" + result.getBody().toJSONString()); |
| | | } else { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdcJc; |
| | | |
| | | import org.jeecg.JeecgSystemApplication; |
| | | import org.jeecg.modules.mdc.util.DateUtils; |
| | | import org.jeecg.modules.mdcJc.service.IClassMonthlyscheduleService; |
| | | import org.jeecg.modules.mdcJc.service.IMdcClassMonthService; |
| | | import org.jeecg.modules.mdcJc.service.IMdcProductMonthScheduleService; |
| | | import org.junit.Test; |
| | | import org.junit.runner.RunWith; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | import org.springframework.test.context.junit4.SpringRunner; |
| | | |
| | | /** |
| | | * @author clown |
| | | * * @date 2024/7/16 |
| | | */ |
| | | @RunWith(SpringRunner.class) |
| | | @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,classes = JeecgSystemApplication.class) |
| | | public class MesTest { |
| | | @Autowired |
| | | private IClassMonthlyscheduleService mesInfoInMdcService; |
| | | @Autowired |
| | | private IMdcClassMonthService mdcClassMonthService; |
| | | @Autowired |
| | | private IMdcProductMonthScheduleService mdcProductMonthScheduleService; |
| | | |
| | | @Test |
| | | public void scheduleProductMonthList() { |
| | | mdcProductMonthScheduleService.scheduleProductMonthList(); |
| | | } |
| | | |
| | | |
| | | @Test |
| | | public void classMonthSchedule() { |
| | | mdcClassMonthService.saveOrUpdateClassMonthSchedule(); |
| | | } |
| | | |
| | | @Test |
| | | public void testQuery() { |
| | | String date = DateUtils.format(DateUtils.getNow(),DateUtils.STR_YEAR_MONTH); |
| | | |
| | | mesInfoInMdcService.findListClass(date); |
| | | } |
| | | } |