Commit ee57572a by Lizh

修复mapper.xml中的遗漏问题

parent 56faa65b
......@@ -1649,11 +1649,15 @@ public class CustomProductInfoServiceImpl implements CustomProductInfoService {
// 工厂关联 ID 列表
fullVO.setFactoryIds(factoryIds);
// 备注
fullVO.setProductCnRemark(BeanMapper.snakeCase().convert(cnRemark, ProductRemarkVO.class));
fullVO.setProductRemark(BeanMapper.snakeCase().convert(remark, ProductRemarkVO.class));
fullVO.setRemark(remark.getRemark());
fullVO.setCnRemark(cnRemark.getRemark());
// 备注(null-safe:商品可能无中/英文备注)
if (cnRemark != null) {
fullVO.setProductCnRemark(BeanMapper.snakeCase().convert(cnRemark, ProductRemarkVO.class));
fullVO.setCnRemark(cnRemark.getRemark());
}
if (remark != null) {
fullVO.setProductRemark(BeanMapper.snakeCase().convert(remark, ProductRemarkVO.class));
fullVO.setRemark(remark.getRemark());
}
return fullVO;
}
......
......@@ -59,8 +59,7 @@ public class CustomProductInfoSnakeVO implements Serializable {
private Integer category_id;
@Schema(description = "重量(kg)")
//private BigDecimal weight;
private String weight;
private BigDecimal weight;
@Schema(description = "最小采购量")
private Integer purchasing_min;
......
......@@ -3,6 +3,7 @@ package com.jomalls.custom.dal.mapper;
import com.jomalls.custom.dal.entity.SysMenuEntity;
import com.jomalls.custom.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
......@@ -14,5 +15,5 @@ import java.util.List;
*/
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenuEntity> {
List<String> selectMenuPermsByUserId(Long userId);
List<String> selectMenuPermsByUserId(@Param("userId") Long userId);
}
......@@ -3,6 +3,7 @@ package com.jomalls.custom.dal.mapper;
import com.jomalls.custom.dal.entity.SysRoleEntity;
import com.jomalls.custom.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
......@@ -14,5 +15,5 @@ import java.util.List;
*/
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRoleEntity> {
List<String> selectRoleKeysByUserId(Long userId);
List<String> selectRoleKeysByUserId(@Param("userId") Long userId);
}
......@@ -14,4 +14,12 @@
<sql id="tableColumns">
id, template_id, employee_id, employee_account, description, create_time
</sql>
<!-- 批量插入 -->
<insert id="insertBatchSomeColumn">
INSERT INTO log_product_template (template_id, employee_id, employee_account, description, create_time) VALUES
<foreach collection="list" item="item" separator=",">
(#{item.templateId}, #{item.employeeId}, #{item.employeeAccount}, #{item.description}, #{item.createTime})
</foreach>
</insert>
</mapper>
......@@ -47,7 +47,7 @@
create_time,
update_by,
update_time,
remark,
remark
</sql>
<!-- 根据用户ID查询权限列表 -->
......
......@@ -11,7 +11,7 @@
<!-- 注意去掉最后一行的逗号 -->
<sql id="tableColumns">
role_id,
dept_id,
dept_id
</sql>
<!-- 批量插入 -->
......
......@@ -35,7 +35,7 @@
create_time,
update_by,
update_time,
remark,
remark
</sql>
<!-- 根据用户ID查询角色标识列表 -->
......
......@@ -11,7 +11,7 @@
<!-- 注意去掉最后一行的逗号 -->
<sql id="tableColumns">
role_id,
menu_id,
menu_id
</sql>
<!-- 批量插入 -->
......
......@@ -21,7 +21,7 @@
password,
status,
remark,
create_time,
create_time
</sql>
<!-- 批量插入 -->
......
......@@ -11,7 +11,7 @@
<!-- 注意去掉最后一行的逗号 -->
<sql id="tableColumns">
user_id,
role_id,
role_id
</sql>
<!-- 批量插入 -->
......
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