{
int result = Constants.Base.FAIL;
ShopTypeCriteria shopTypeCriteria = new ShopTypeCriteria();
Criteria criteria = shopTypeCriteria.createCriteria();
criteria.andTypeIdentifyEqualTo(shopType.getTypeIdentify());
List<ShopType> shopTypes = shopTypeMapper.selectByCriteria(shopTypeCriteria);
if (shopTypes.size() < 1)
{
if(shopTypeMapper.updateByPrimaryKeySelective(shopType) > 0)
{