长泰预备货问题解决,系统配置是否拆单问题
parent
17491a6e7a
commit
2cff973619
@ -0,0 +1,9 @@
|
||||
package com.glxp.mipsdl.dao.system;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.glxp.mipsdl.entity.system.SysParamConfigEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface SysParamConfigMapper extends BaseMapper<SysParamConfigEntity> {
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.glxp.mipsdl.service.system;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.glxp.mipsdl.util.IntUtil;
|
||||
import org.apache.logging.log4j.spi.Terminable;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.glxp.mipsdl.dao.system.SysParamConfigMapper;
|
||||
import com.glxp.mipsdl.entity.system.SysParamConfigEntity;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Service
|
||||
public class SysParamConfigService extends ServiceImpl<SysParamConfigMapper, SysParamConfigEntity> {
|
||||
@Resource
|
||||
SysParamConfigMapper sysParamConfigMapper;
|
||||
|
||||
public Boolean selectByKey(String key) {
|
||||
SysParamConfigEntity sysParamConfigEntity = sysParamConfigMapper.selectOne(new QueryWrapper<SysParamConfigEntity>().eq("paramKey", key).last("limit 1"));
|
||||
if (sysParamConfigEntity != null) {
|
||||
String value = sysParamConfigEntity.getParamValue();
|
||||
if (IntUtil.value(value) > 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
<?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.glxp.mipsdl.dao.system.SysParamConfigMapper">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.system.SysParamConfigEntity">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table sys_param_config-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="parentId" jdbcType="INTEGER" property="parentId" />
|
||||
<result column="paramName" jdbcType="VARCHAR" property="paramName" />
|
||||
<result column="paramKey" jdbcType="VARCHAR" property="paramKey" />
|
||||
<result column="paramValue" jdbcType="VARCHAR" property="paramValue" />
|
||||
<result column="paramStatus" jdbcType="INTEGER" property="paramStatus" />
|
||||
<result column="paramType" jdbcType="INTEGER" property="paramType" />
|
||||
<result column="paramExplain" jdbcType="VARCHAR" property="paramExplain" />
|
||||
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, parentId, paramName, paramKey, paramValue, paramStatus, paramType, paramExplain,
|
||||
updateTime
|
||||
</sql>
|
||||
</mapper>
|
Loading…
Reference in New Issue