商品模块问题修复

This commit is contained in:
clunt 2022-03-17 14:54:11 +08:00
parent f650c0a833
commit e2ac70f656
4 changed files with 6 additions and 6 deletions

View File

@ -29,7 +29,7 @@ public class GoodsController extends BaseController {
@RequiresPermissions("goods:goods:view")
@GetMapping()
public String operlog()
public String goods()
{
return prefix + "/goods";
}

View File

@ -38,10 +38,10 @@ public interface GoodsMapper {
/**
* 批量删除商品信息
*
* @param ids 需要删除的数据ID
* @param goodsId 需要删除的数据ID
* @return 结果
*/
public int deleteGoodsByIds(Long[] ids);
public int deleteGoodsByIds(Long[] goodsId);
/**
* @param goodsName 商品名称

View File

@ -7,9 +7,9 @@ import com.ghy.common.utils.StringUtils;
import com.ghy.goods.domain.Goods;
import com.ghy.goods.mapper.GoodsMapper;
import com.ghy.goods.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
@ -19,7 +19,7 @@ import java.util.List;
@Service
public class GoodsServiceImpl implements GoodsService {
@Autowired
@Resource
private GoodsMapper goodsMapper;
@Override

View File

@ -68,7 +68,7 @@
</update>
<insert id="insertGoods" parameterType="com.ghy.goods.domain.Goods" useGeneratedKeys="true" keyProperty="goodsId">
insert into sys_post(
insert into goods(
<if test="goodsId != null and goodsId != 0">goods_id,</if>
<if test="goodsCode != null and goodsCode != ''">goods_code,</if>
<if test="goodsName != null and goodsName != ''">goods_name,</if>