func (p *TestTable) DupCheck(entityx *entity.TestTable) bool {
	cbx := cb.CreateTestTableCB()
	cbx.Query().SetDelFlag_Equal(0)
	//Unique SetXXX
	cbx.Query().SetTestId_Equal(entityx.GetTestId())
	res, err := bhv.TestTableBhv_I.SelectList(cbx, p.tx)
	if err != nil {
		panic(err.Error())
	}
	return res.AllRecordCount > 0
}
func (p *TestTable) getDelFlagMaxValue(entityx *entity.TestTable) int64 {
	cbx := cb.CreateTestTableCB()
	//Unique SetXXX
	cbx.Query().SetTestId_Equal(entityx.GetTestId())
	cbx.Query().AddOrderBy_DelFlag_Desc()
	cbx.FetchFirst(1)
	res, err := bhv.TestTableBhv_I.SelectList(cbx, p.tx)
	if err != nil {
		panic(err.Error())
	}
	if res.AllRecordCount == 1 {
		return (res.List.Get(0)).(*entity.TestTable).GetDelFlag()
	}
	panic("DelFlag Max not found")
	return 1
}