约束策略

parent 8447ab72
This source diff could not be displayed because it is too large. You can view the blob instead.
package com.aps.entity;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
@Data
public class Config {
private Long id;
private String page;
private String component;
private String key;
private String content;
private String note;
private LocalDateTime creationtime;
private Long creatoruserid;
private LocalDateTime lastmodificationtime;
private Long lastmodifieruserid;
private Long isdeleted;
private LocalDateTime deletiontime;
private Long deleteruserid;
}
\ No newline at end of file
package com.aps.entity;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
@Data
public class StrategyRule {
private Long id;
private Long creatorUserId;
private LocalDateTime creationTime;
private Long lastModifierUserId;
private LocalDateTime lastModificationTime;
private Integer isDeleted;
private Long deleterUserId;
private LocalDateTime deletionTime;
private String name;
private Short isGlobal;
private String forwardScheduling;
}
\ No newline at end of file
package com.aps.mapper;
import com.aps.entity.Config;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 用户配置 Mapper 接口
* </p>
*
* @author MyBatis-Plus
* @since 2025-12-10
*/
public interface ConfigMapper extends BaseMapper<Config> {
}
package com.aps.mapper;
import com.aps.entity.StrategyRule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 策略规则 Mapper 接口
* </p>
*
* @author MyBatis-Plus
* @since 2025-12-10
*/
public interface StrategyRuleMapper extends BaseMapper<StrategyRule> {
}
package com.aps.service;
import com.aps.entity.Config;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 用户配置 服务类
* </p>
*
* @author MyBatis-Plus
* @since 2025-12-10
*/
public interface ConfigService extends IService<Config> {
}
package com.aps.service;
import com.aps.entity.StrategyRule;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 策略规则 服务类
* </p>
*
* @author MyBatis-Plus
* @since 2025-12-10
*/
public interface StrategyRuleService extends IService<StrategyRule> {
}
package com.aps.service.impl;
import com.aps.entity.Config;
import com.aps.mapper.ConfigMapper;
import com.aps.service.ConfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 用户配置 服务实现类
* </p>
*
* @author MyBatis-Plus
* @since 2025-12-10
*/
@Service
public class ConfigServiceImpl extends ServiceImpl<ConfigMapper, Config> implements ConfigService {
}
package com.aps.service.impl;
import com.aps.entity.StrategyRule;
import com.aps.mapper.StrategyRuleMapper;
import com.aps.service.StrategyRuleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 策略规则 服务实现类
* </p>
*
* @author MyBatis-Plus
* @since 2025-12-10
*/
@Service
public class StrategyRuleServiceImpl extends ServiceImpl<StrategyRuleMapper, StrategyRule> implements StrategyRuleService {
}
<?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.aps.mapper.ConfigMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.aps.entity.Config">
<id column="ID" property="id" />
<result column="PAGE" property="page" />
<result column="COMPONENT" property="component" />
<result column="KEY" property="key" />
<result column="CONTENT" property="content" />
<result column="NOTE" property="note" />
<result column="CREATIONTIME" property="creationtime" />
<result column="CREATORUSERID" property="creatoruserid" />
<result column="LASTMODIFICATIONTIME" property="lastmodificationtime" />
<result column="LASTMODIFIERUSERID" property="lastmodifieruserid" />
<result column="ISDELETED" property="isdeleted" />
<result column="DELETIONTIME" property="deletiontime" />
<result column="DELETERUSERID" property="deleteruserid" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, PAGE, COMPONENT, KEY, CONTENT, NOTE, CREATIONTIME, CREATORUSERID, LASTMODIFICATIONTIME, LASTMODIFIERUSERID, ISDELETED, DELETIONTIME, DELETERUSERID
</sql>
</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="com.aps.mapper.StrategyRuleMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.aps.entity.StrategyRule">
<id column="ID" property="id" />
<result column="CREATOR_USER_ID" property="creatorUserId" />
<result column="CREATION_TIME" property="creationTime" />
<result column="LAST_MODIFIER_USER_ID" property="lastModifierUserId" />
<result column="LAST_MODIFICATION_TIME" property="lastModificationTime" />
<result column="IS_DELETED" property="isDeleted" />
<result column="DELETER_USER_ID" property="deleterUserId" />
<result column="DELETION_TIME" property="deletionTime" />
<result column="NAME" property="name" />
<result column="IS_GLOBAL" property="isGlobal" />
<result column="FORWARD_SCHEDULING" property="forwardScheduling" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
ID, CREATOR_USER_ID, CREATION_TIME, LAST_MODIFIER_USER_ID, LAST_MODIFICATION_TIME, IS_DELETED, DELETER_USER_ID, DELETION_TIME, NAME, IS_GLOBAL, FORWARD_SCHEDULING
</sql>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment