51 changed files with 1014 additions and 77 deletions
@ -0,0 +1,44 @@ |
|||
package com.qs.serve.modules.bms.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableId; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
|
|||
/** |
|||
* @author YenHex |
|||
* @since 2025/3/11 |
|||
*/ |
|||
@Data |
|||
@TableName("bms_channel_point_ext") |
|||
public class BmsChannelPointExt { |
|||
|
|||
@TableId |
|||
private String pointId; |
|||
|
|||
/** 省 */ |
|||
private String extProvince; |
|||
|
|||
/** 城市 */ |
|||
private String extCity; |
|||
|
|||
/** 区 */ |
|||
private String extRegionArea; |
|||
|
|||
/** 乡镇 */ |
|||
private String extTownship; |
|||
|
|||
/** 街道 */ |
|||
private String extStreet; |
|||
|
|||
/** 街道编号 */ |
|||
private String extStreetNumber; |
|||
/** 纬度 */ |
|||
private String localX; |
|||
|
|||
/** 经度 */ |
|||
private String localY; |
|||
|
|||
private String address; |
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.qs.serve.modules.bms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.bms.entity.BmsCenterRegion; |
|||
import com.qs.serve.modules.bms.entity.BmsChannelPointExt; |
|||
|
|||
/** |
|||
* Mapper |
|||
* @author YenHex |
|||
* @date 2023-07-20 |
|||
*/ |
|||
public interface BmsChannelPointExtMapper extends BaseMapper<BmsChannelPointExt> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,60 @@ |
|||
package com.qs.serve.modules.oms.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.FieldFill; |
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableId; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
|
|||
/** |
|||
* @author YenHex |
|||
* @since 2025/3/13 |
|||
*/ |
|||
@Data |
|||
public class OmsSeaTank { |
|||
|
|||
@TableId |
|||
private String id; |
|||
|
|||
private String label; |
|||
|
|||
private BigDecimal minSquare; |
|||
|
|||
private BigDecimal maxSquare; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
/** 租户id */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private String tenantId; |
|||
|
|||
/** 删除标识 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private Boolean delFlag; |
|||
} |
@ -0,0 +1,61 @@ |
|||
package com.qs.serve.modules.oms.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.FieldFill; |
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableId; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
|
|||
/** |
|||
* @author YenHex |
|||
* @since 2025/3/13 |
|||
*/ |
|||
@Data |
|||
public class OmsTransport { |
|||
|
|||
@TableId |
|||
private String id; |
|||
|
|||
private String label; |
|||
|
|||
/** |
|||
* 显示海柜 |
|||
*/ |
|||
private Integer showTankFlag; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
/** 租户id */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private String tenantId; |
|||
|
|||
/** 删除标识 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private Boolean delFlag; |
|||
} |
@ -0,0 +1,80 @@ |
|||
package com.qs.serve.modules.oms.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import java.io.Serializable; |
|||
import java.time.LocalDateTime; |
|||
|
|||
/** |
|||
* 订单 实体类 |
|||
* @author YenHex |
|||
* @since 2022-10-14 |
|||
*/ |
|||
@Data |
|||
@TableName("oms_ver_sale_delivery") |
|||
public class OmsVerSaleDelivery implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** id */ |
|||
@TableId(type = IdType.AUTO) |
|||
private Long id; |
|||
|
|||
private String orderSn; |
|||
|
|||
private String erpId; |
|||
|
|||
private String operatorName; |
|||
|
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
private LocalDateTime operationTime; |
|||
|
|||
private String source; |
|||
|
|||
private LocalDateTime deliveryDate; |
|||
|
|||
private String currentVersion; |
|||
private String lastVersion; |
|||
private Integer sort; |
|||
|
|||
/** 备注 */ |
|||
private String remark; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
/** 租户id */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private String tenantId; |
|||
|
|||
/** 删除标识 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private Boolean delFlag; |
|||
|
|||
} |
|||
|
@ -0,0 +1,11 @@ |
|||
package com.qs.serve.modules.oms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.oms.entity.OmsSeaTank; |
|||
|
|||
/** |
|||
* @author YenHex |
|||
* @since 2025/3/13 |
|||
*/ |
|||
public interface OmsSeaTankMapper extends BaseMapper<OmsSeaTank> { |
|||
} |
@ -0,0 +1,12 @@ |
|||
package com.qs.serve.modules.oms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.oms.entity.OmsSeaTank; |
|||
import com.qs.serve.modules.oms.entity.OmsTransport; |
|||
|
|||
/** |
|||
* @author YenHex |
|||
* @since 2025/3/13 |
|||
*/ |
|||
public interface OmsTransportMapper extends BaseMapper<OmsTransport> { |
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.qs.serve.modules.oms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.oms.entity.OmsVerSaleDelivery; |
|||
import org.apache.ibatis.annotations.Select; |
|||
|
|||
/** |
|||
* 订单 Mapper |
|||
* @author YenHex |
|||
* @date 2022-10-14 |
|||
*/ |
|||
public interface OmsVerSaleDeliveryMapper extends BaseMapper<OmsVerSaleDelivery> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,49 @@ |
|||
package com.qs.serve.modules.other.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.qs.serve.common.model.annotation.SysLog; |
|||
import com.qs.serve.common.model.dto.PageVo; |
|||
import com.qs.serve.common.model.dto.R; |
|||
import com.qs.serve.common.model.enums.BizType; |
|||
import com.qs.serve.common.model.enums.SystemModule; |
|||
import com.qs.serve.common.util.PageUtil; |
|||
import com.qs.serve.common.util.CopierUtil; |
|||
import com.qs.serve.common.util.StringUtils; |
|||
import com.qs.serve.modules.other.mapper.ZbiUserReportMapper; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import com.qs.serve.modules.other.entity.ZbiReport; |
|||
import com.qs.serve.modules.other.service.ZbiReportService; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 报表 |
|||
* @author YenHex |
|||
* @since 2025-03-20 |
|||
*/ |
|||
@Slf4j |
|||
@AllArgsConstructor |
|||
@RestController |
|||
@RequestMapping("zbi/report") |
|||
public class ZbiReportController { |
|||
|
|||
private ZbiUserReportMapper zbiUserReportMapper; |
|||
|
|||
/** |
|||
* 列表 |
|||
* @param userCode |
|||
* @return |
|||
*/ |
|||
@GetMapping("/listByUserCode/{userCode}") |
|||
public R<List<ZbiReport>> getList(@PathVariable("userCode") String userCode){ |
|||
List<ZbiReport> reportList = zbiUserReportMapper.getReportList(userCode); |
|||
return R.ok(reportList); |
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,96 @@ |
|||
package com.qs.serve.modules.other.entity; |
|||
|
|||
import java.time.LocalDate; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* 实体类 |
|||
* @author YenHex |
|||
* @since 2025-03-20 |
|||
*/ |
|||
@Data |
|||
@TableName("zbi_report") |
|||
public class ZbiReport implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** id */ |
|||
@TableId(type = IdType.AUTO) |
|||
private Long id; |
|||
|
|||
/** 报表值 */ |
|||
@Length(max = 255,message = "报表值长度不能超过255字") |
|||
private String reportValue; |
|||
|
|||
/** 停用:0-正常;1-停用 */ |
|||
private Integer stopFlag; |
|||
|
|||
/** 显示状态:0-用户关联;1-共有的 */ |
|||
private Integer showState; |
|||
|
|||
/** 备注 */ |
|||
@Length(max = 255,message = "备注长度不能超过255字") |
|||
private String remark; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
/** 租户id */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private String tenantId; |
|||
|
|||
/** 删除标识 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private Boolean delFlag; |
|||
|
|||
|
|||
public static ZbiReport toNewObject(ZbiReport source){ |
|||
ZbiReport report = new ZbiReport(); |
|||
report.setId(source.getId()); |
|||
report.setReportValue(source.getReportValue()); |
|||
report.setStopFlag(source.getStopFlag()); |
|||
report.setShowState(source.getShowState()); |
|||
report.setRemark(source.getRemark()); |
|||
report.setCreateTime(source.getCreateTime()); |
|||
report.setCreateBy(source.getCreateBy()); |
|||
report.setUpdateTime(source.getUpdateTime()); |
|||
report.setUpdateBy(source.getUpdateBy()); |
|||
report.setTenantId(source.getTenantId()); |
|||
report.setDelFlag(source.getDelFlag()); |
|||
return report; |
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,92 @@ |
|||
package com.qs.serve.modules.other.entity; |
|||
|
|||
import java.time.LocalDate; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* 实体类 |
|||
* @author YenHex |
|||
* @since 2025-03-20 |
|||
*/ |
|||
@Data |
|||
@TableName("zbi_user_report") |
|||
public class ZbiUserReport implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** id */ |
|||
@TableId(type = IdType.AUTO) |
|||
private Long id; |
|||
|
|||
/** 员工号 */ |
|||
@Length(max = 64,message = "员工号长度不能超过64字") |
|||
private String userCode; |
|||
|
|||
/** 报表id */ |
|||
private Long reportId; |
|||
|
|||
/** 备注 */ |
|||
@Length(max = 255,message = "备注长度不能超过255字") |
|||
private String remark; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
/** 租户id */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private String tenantId; |
|||
|
|||
/** 删除标识 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private Boolean delFlag; |
|||
|
|||
|
|||
public static ZbiUserReport toNewObject(ZbiUserReport source){ |
|||
ZbiUserReport userReport = new ZbiUserReport(); |
|||
userReport.setId(source.getId()); |
|||
userReport.setUserCode(source.getUserCode()); |
|||
userReport.setReportId(source.getReportId()); |
|||
userReport.setRemark(source.getRemark()); |
|||
userReport.setCreateTime(source.getCreateTime()); |
|||
userReport.setCreateBy(source.getCreateBy()); |
|||
userReport.setUpdateTime(source.getUpdateTime()); |
|||
userReport.setUpdateBy(source.getUpdateBy()); |
|||
userReport.setTenantId(source.getTenantId()); |
|||
userReport.setDelFlag(source.getDelFlag()); |
|||
return userReport; |
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,16 @@ |
|||
package com.qs.serve.modules.other.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.other.entity.ZbiReport; |
|||
|
|||
/** |
|||
* Mapper |
|||
* @author YenHex |
|||
* @date 2025-03-20 |
|||
*/ |
|||
public interface ZbiReportMapper extends BaseMapper<ZbiReport> { |
|||
|
|||
|
|||
|
|||
} |
|||
|
@ -0,0 +1,19 @@ |
|||
package com.qs.serve.modules.other.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.other.entity.ZbiReport; |
|||
import com.qs.serve.modules.other.entity.ZbiUserReport; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Mapper |
|||
* @author YenHex |
|||
* @date 2025-03-20 |
|||
*/ |
|||
public interface ZbiUserReportMapper extends BaseMapper<ZbiUserReport> { |
|||
|
|||
List<ZbiReport> getReportList(String userCode); |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.other.service; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.qs.serve.modules.other.entity.ZbiReport; |
|||
|
|||
/** |
|||
* 服务接口 |
|||
* @author YenHex |
|||
* @date 2025-03-20 |
|||
*/ |
|||
public interface ZbiReportService extends IService<ZbiReport> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.other.service; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.qs.serve.modules.other.entity.ZbiUserReport; |
|||
|
|||
/** |
|||
* 服务接口 |
|||
* @author YenHex |
|||
* @date 2025-03-20 |
|||
*/ |
|||
public interface ZbiUserReportService extends IService<ZbiUserReport> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,22 @@ |
|||
package com.qs.serve.modules.other.service.impl; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
import com.qs.serve.modules.other.entity.ZbiReport; |
|||
import com.qs.serve.modules.other.service.ZbiReportService; |
|||
import com.qs.serve.modules.other.mapper.ZbiReportMapper; |
|||
|
|||
/** |
|||
* 服务实现类 |
|||
* @author YenHex |
|||
* @since 2025-03-20 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@AllArgsConstructor |
|||
public class ZbiReportServiceImpl extends ServiceImpl<ZbiReportMapper,ZbiReport> implements ZbiReportService { |
|||
|
|||
} |
|||
|
@ -0,0 +1,22 @@ |
|||
package com.qs.serve.modules.other.service.impl; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
import com.qs.serve.modules.other.entity.ZbiUserReport; |
|||
import com.qs.serve.modules.other.service.ZbiUserReportService; |
|||
import com.qs.serve.modules.other.mapper.ZbiUserReportMapper; |
|||
|
|||
/** |
|||
* 服务实现类 |
|||
* @author YenHex |
|||
* @since 2025-03-20 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@AllArgsConstructor |
|||
public class ZbiUserReportServiceImpl extends ServiceImpl<ZbiUserReportMapper,ZbiUserReport> implements ZbiUserReportService { |
|||
|
|||
} |
|||
|
@ -0,0 +1,16 @@ |
|||
<?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.qs.serve.modules.other.mapper.ZbiUserReportMapper"> |
|||
|
|||
<select id="getReportList" resultType="com.qs.serve.modules.other.entity.ZbiReport"> |
|||
SELECT t2.* FROM zbi_report t2 |
|||
left join `zbi_user_report` t1 on t1.report_id = t2.id |
|||
where |
|||
t2.del_flag = 0 |
|||
and t2.stop_flag = 0 |
|||
and ((t1.del_flag = 0 and t1.user_code = #{userCode}) or t2.show_state = 1) |
|||
</select> |
|||
|
|||
</mapper> |
Loading…
Reference in new issue