实现小程序接口协议管理给内容
This commit is contained in:
parent
6d85f00fac
commit
93df5bc09e
@ -54,4 +54,11 @@ public class XhpcAgreementController extends BaseController {
|
||||
|
||||
return AjaxResult.success(iXhpcAgreementService.selectAgreementItem(agreementId));
|
||||
}
|
||||
@GetMapping("/getContent")
|
||||
public AjaxResult getContent(@RequestParam String title,@RequestParam Integer type){
|
||||
|
||||
return AjaxResult.success(iXhpcAgreementService.selectContent(title,type));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -62,6 +62,9 @@ public class XhpcDictBizController extends BaseController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adding a childItem to the table(xhpc_dict_biz)
|
||||
* @param parentId
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
package com.xhpc.general.mapper;
|
||||
|
||||
import com.xhpc.general.domain.XhpcAgreement;
|
||||
import org.apache.commons.math3.genetics.Fitness;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
@ -31,4 +32,7 @@ public interface XhpcAgreementMapper {
|
||||
List<XhpcAgreement> selectAgreementItems(@Param("title") String title, @Param("createBy") String createBy, @Param("type") Integer type);
|
||||
|
||||
XhpcAgreement selectAgreementItem(@Param("agreementId") Long agreementId);
|
||||
|
||||
|
||||
XhpcAgreement selectContentType(@Param("title") String title,@Param("type") Integer type);
|
||||
}
|
||||
|
||||
@ -89,6 +89,8 @@ public interface XhpcDictBizMapper {
|
||||
*/
|
||||
List<XhpcDictionary> selectChildDictionaryItemsByCodeAndName(@Param("id") Long parentId, @Param("code") String code, @Param("name") String name);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Updating the main item by code,dictValue,sort
|
||||
* @param dictBizId
|
||||
@ -139,5 +141,4 @@ public interface XhpcDictBizMapper {
|
||||
|
||||
|
||||
void updateChildCodeAfterParentChanged(@Param("code") String code,@Param("id") Long id);
|
||||
|
||||
}
|
||||
|
||||
@ -25,4 +25,6 @@ public interface IXhpcAgreementService {
|
||||
List<XhpcAgreement> selectAgreementItems(String title, String createBy,Integer type);
|
||||
|
||||
XhpcAgreement selectAgreementItem(Long agreementId);
|
||||
|
||||
XhpcAgreement selectContent(String title,Integer type);
|
||||
}
|
||||
|
||||
@ -110,4 +110,7 @@ public interface IXhpcDictBizService {
|
||||
* Deleting a bundle of parent item.
|
||||
*/
|
||||
AjaxResult deleteParentItems(String ids);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -110,4 +110,11 @@ public class XhpcAgreementServiceImpl implements IXhpcAgreementService {
|
||||
|
||||
return xhpcAgreementMapper.selectAgreementItem(agreementId);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public XhpcAgreement selectContent(String title,Integer type) {
|
||||
|
||||
return xhpcAgreementMapper.selectContentType(title,type);
|
||||
}
|
||||
}
|
||||
|
||||
@ -89,7 +89,6 @@ public class XhpcDictBizServiceImpl implements IXhpcDictBizService{
|
||||
return AjaxResult.success(xhpcDictionary);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public AjaxResult addAChildDictionaryItem(Long parentId, String code, String dictKey, String dictValue,Integer sort) {
|
||||
|
||||
@ -62,4 +62,12 @@
|
||||
from xhpc_agreement
|
||||
where agreement_id=#{agreementId}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectContentType" resultMap="BaseResultMap">
|
||||
|
||||
select *
|
||||
from xhpc_agreement
|
||||
where type=#{type} and title=#{title}
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
x
Reference in New Issue
Block a user