实现小程序接口协议管理给内容

This commit is contained in:
little-cat-sweet 2021-08-03 18:15:45 +08:00
parent 6d85f00fac
commit 93df5bc09e
9 changed files with 36 additions and 2 deletions

View File

@ -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));
}
}

View File

@ -62,6 +62,9 @@ public class XhpcDictBizController extends BaseController {
}
/**
* Adding a childItem to the table(xhpc_dict_biz)
* @param parentId

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -110,4 +110,7 @@ public interface IXhpcDictBizService {
* Deleting a bundle of parent item.
*/
AjaxResult deleteParentItems(String ids);
}

View File

@ -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);
}
}

View File

@ -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) {

View File

@ -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>