商品模块问题修复
This commit is contained in:
parent
f650c0a833
commit
e2ac70f656
|
|
@ -29,7 +29,7 @@ public class GoodsController extends BaseController {
|
||||||
|
|
||||||
@RequiresPermissions("goods:goods:view")
|
@RequiresPermissions("goods:goods:view")
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
public String operlog()
|
public String goods()
|
||||||
{
|
{
|
||||||
return prefix + "/goods";
|
return prefix + "/goods";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,10 +38,10 @@ public interface GoodsMapper {
|
||||||
/**
|
/**
|
||||||
* 批量删除商品信息
|
* 批量删除商品信息
|
||||||
*
|
*
|
||||||
* @param ids 需要删除的数据ID
|
* @param goodsId 需要删除的数据ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteGoodsByIds(Long[] ids);
|
public int deleteGoodsByIds(Long[] goodsId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param goodsName 商品名称
|
* @param goodsName 商品名称
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ import com.ghy.common.utils.StringUtils;
|
||||||
import com.ghy.goods.domain.Goods;
|
import com.ghy.goods.domain.Goods;
|
||||||
import com.ghy.goods.mapper.GoodsMapper;
|
import com.ghy.goods.mapper.GoodsMapper;
|
||||||
import com.ghy.goods.service.GoodsService;
|
import com.ghy.goods.service.GoodsService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -19,7 +19,7 @@ import java.util.List;
|
||||||
@Service
|
@Service
|
||||||
public class GoodsServiceImpl implements GoodsService {
|
public class GoodsServiceImpl implements GoodsService {
|
||||||
|
|
||||||
@Autowired
|
@Resource
|
||||||
private GoodsMapper goodsMapper;
|
private GoodsMapper goodsMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<insert id="insertGoods" parameterType="com.ghy.goods.domain.Goods" useGeneratedKeys="true" keyProperty="goodsId">
|
<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="goodsId != null and goodsId != 0">goods_id,</if>
|
||||||
<if test="goodsCode != null and goodsCode != ''">goods_code,</if>
|
<if test="goodsCode != null and goodsCode != ''">goods_code,</if>
|
||||||
<if test="goodsName != null and goodsName != ''">goods_name,</if>
|
<if test="goodsName != null and goodsName != ''">goods_name,</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue