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