添加执行任务列表接口
This commit is contained in:
parent
ae0e533058
commit
96060f7cec
|
@ -24,8 +24,10 @@ func NewApplyListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ApplyLi
|
|||
|
||||
// applyList 执行任务列表
|
||||
func (l *ApplyListLogic) ApplyList(in *pcmCore.ApplyListReq) (*pcmCore.ApplyListResp, error) {
|
||||
result := pcmCore.ApplyListResp{}
|
||||
l.svcCtx.DbEngin.Raw("SELECT sppi.`name` as participantName,c.yaml_string as yamlString FROM cloud c,sc_participant_phy_info sppi where c.`status` = 'Saved' and sppi.id = c.participant_id").Scan(&result.InfoList)
|
||||
result := pcmCore.ApplyListResp{
|
||||
InfoList: make([]*pcmCore.ApplyInfo, 0),
|
||||
}
|
||||
l.svcCtx.DbEngin.Raw("SELECT sppi.`name` as ParticipantName,c.yaml_string as YamlString FROM cloud c,sc_participant_phy_info sppi where c.`status` = 'Saved' and sppi.id = c.participant_id").Scan(&result.InfoList)
|
||||
if len(result.InfoList) != 0 {
|
||||
l.svcCtx.DbEngin.Exec("update cloud set status = ? where status = ?", "Issued", "Saved")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue