12/16
This commit is contained in:
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|||||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||||
import com.yxt.yyth.api.lpkgoods.LpkGoods;
|
import com.yxt.yyth.api.lpkgoods.LpkGoods;
|
||||||
import com.yxt.yyth.api.lpkstore.LpkStore;
|
import com.yxt.yyth.api.lpkstore.LpkStore;
|
||||||
|
import com.yxt.yyth.api.lpkstore.LpkStoreDetailsVo;
|
||||||
import com.yxt.yyth.api.lpkstore.LpkStoreVo;
|
import com.yxt.yyth.api.lpkstore.LpkStoreVo;
|
||||||
import com.yxt.yyth.api.lpkstore.StoreSelect;
|
import com.yxt.yyth.api.lpkstore.StoreSelect;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
@@ -29,5 +30,5 @@ public interface LpkStoreMapper extends BaseMapper<LpkStore> {
|
|||||||
@Select("select sid as value,name as text from lpk_store where isEnable=1")
|
@Select("select sid as value,name as text from lpk_store where isEnable=1")
|
||||||
List<StoreSelect> getSelectStore();
|
List<StoreSelect> getSelectStore();
|
||||||
|
|
||||||
LpkStoreVo storeInit(@Param("sid") String sid);
|
LpkStoreDetailsVo storeInit(@Param("sid") String sid);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="storeInit" resultType="com.yxt.yyth.api.lpkstore.LpkStoreVo">
|
<select id="storeInit" resultType="com.yxt.yyth.api.lpkstore.LpkStoreDetailsVo">
|
||||||
select
|
select
|
||||||
st.sid,
|
st.sid,
|
||||||
date_format(st.createTime, '%Y-%m-%d') as createTime,
|
date_format(st.createTime, '%Y-%m-%d') as createTime,
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ public class LpkStoreService extends MybatisBaseService<LpkStoreMapper, LpkStore
|
|||||||
|
|
||||||
public ResultBean<LpkStoreDetailsVo> storeInit(String sid) {
|
public ResultBean<LpkStoreDetailsVo> storeInit(String sid) {
|
||||||
ResultBean rb = ResultBean.fireFail();
|
ResultBean rb = ResultBean.fireFail();
|
||||||
LpkStoreVo lpkStore = baseMapper.storeInit(sid);
|
LpkStoreDetailsVo lpkStore = baseMapper.storeInit(sid);
|
||||||
|
|
||||||
return rb.success().setData(lpkStore);
|
return rb.success().setData(lpkStore);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user