add:仓库策略配置页面

This commit is contained in:
zhangzq
2025-06-26 15:58:26 +08:00
parent 7b9ad26e11
commit 3e3ee3f920
7 changed files with 100 additions and 105 deletions

View File

@@ -0,0 +1,19 @@
package org.nl.config.mybatis.typeHandler;
import com.alibaba.fastjson.JSON;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.MappedTypes;
import org.nl.common.domain.handler.ListTypeHandler;
import java.sql.PreparedStatement;
import java.sql.SQLException;
@MappedTypes({Object.class})
@MappedJdbcTypes(JdbcType.VARCHAR)
public class ListStrTypeHandler extends ListTypeHandler {
@Override
public void setNonNullParameter(PreparedStatement ps, int i, Object parameter, JdbcType jdbcType) throws SQLException {
ps.setString(i, JSON.toJSONString(parameter));
}
}